Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|multiSensor.flange_a.phi",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|multiSensor.flange_a.phi",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001091/0.001091, allocations: 96.48 kB / 17.35 MB, free: 6.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00155/0.00155, allocations: 205.5 kB / 18.29 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.433/1.433, allocations: 227.7 MB / 246.8 MB, free: 11.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002192/0.0002194, allocations: 4.281 kB / 307.7 MB, free: 0.8008 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1028/0.1031, allocations: 51.52 MB / 359.3 MB, free: 13.29 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.01071/0.1138, allocations: 10.29 MB / 369.6 MB, free: 2.949 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1876/0.3015, allocations: 3.594 MB / 373.2 MB, free: 9.828 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002372/0.3039, allocations: 62.41 kB / 373.2 MB, free: 9.828 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002243/0.3062, allocations: 0.7114 MB / 373.9 MB, free: 9.824 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002722/0.3089, allocations: 0.7789 MB / 374.7 MB, free: 9.797 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001002/0.3099, allocations: 407.7 kB / 375.1 MB, free: 9.789 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004076/0.314, allocations: 3.262 MB / 378.4 MB, free: 9.355 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00269/0.3167, allocations: 2.279 MB / 380.6 MB, free: 8.844 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001987/0.3187, allocations: 1.036 MB / 381.7 MB, free: 8.586 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002245/0.3209, allocations: 1.454 MB / 383.1 MB, free: 8.184 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004096/0.3214, allocations: 152.2 kB / 383.3 MB, free: 8.184 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009614/0.3223, allocations: 275.9 kB / 383.6 MB, free: 8.152 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009538/0.3233, allocations: 0.8079 MB / 384.4 MB, free: 7.824 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00164/0.325, allocations: 1.396 MB / 385.8 MB, free: 6.938 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004148/0.3291, allocations: 4.568 MB / 390.3 MB, free: 4.508 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.3291, allocations: 1.156 kB / 390.3 MB, free: 4.508 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.3291, allocations: 7.938 kB / 390.3 MB, free: 4.5 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.119e-05/0.3292, allocations: 0 / 390.3 MB, free: 4.5 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 659 * Number of variables: 659 Notification: Performance of Generate backend data structure: time 0.005565/0.3348, allocations: 2.861 MB / 393.2 MB, free: 2.559 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.012e-05/0.3349, allocations: 8.031 kB / 393.2 MB, free: 2.559 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001081/0.3359, allocations: 348.7 kB / 393.5 MB, free: 2.387 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002786/0.3387, allocations: 1.779 MB / 395.3 MB, free: 1.137 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001851/0.3389, allocations: 195 kB / 395.5 MB, free: 1.051 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003834/0.3393, allocations: 248.3 kB / 395.8 MB, free: 0.9688 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005462/0.3448, allocations: 3.291 MB / 399 MB, free: 15.04 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.306e-05/0.3449, allocations: 10.81 kB / 399.1 MB, free: 15.03 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002433/0.3451, allocations: 98.62 kB / 399.2 MB, free: 14.96 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001185/0.3453, allocations: 124.1 kB / 399.3 MB, free: 14.93 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004719/0.35, allocations: 2.756 MB / 402 MB, free: 12.94 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01711/0.3671, allocations: 10.53 MB / 412.6 MB, free: 2.133 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002008/0.3692, allocations: 1.365 MB / 413.9 MB, free: 0.707 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001293/0.3705, allocations: 0.7986 MB / 414.7 MB, free: 15.91 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003251/0.3708, allocations: 203.2 kB / 414.9 MB, free: 15.67 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.695e-05/0.3709, allocations: 47.5 kB / 415 MB, free: 15.62 MB / 334.1 MB Notification: Performance of pre-optimization done (n=98): time 3.477e-06/0.3709, allocations: 0 / 415 MB, free: 15.62 MB / 334.1 MB Notification: Performance of matching and sorting (n=123): time 0.01569/0.3866, allocations: 6.954 MB / 421.9 MB, free: 8.559 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.004e-05/0.3867, allocations: 64.41 kB / 422 MB, free: 8.48 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003292/0.39, allocations: 1.798 MB / 423.8 MB, free: 6.684 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001881/0.3902, allocations: 45.7 kB / 423.8 MB, free: 6.633 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001363/0.3916, allocations: 1.275 MB / 425.1 MB, free: 5.348 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005771/0.3922, allocations: 427.4 kB / 425.5 MB, free: 4.934 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002857/0.3925, allocations: 129.6 kB / 425.6 MB, free: 4.801 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001159/0.3926, allocations: 305.1 kB / 425.9 MB, free: 4.5 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00197/0.3946, allocations: 0.7808 MB / 426.7 MB, free: 3.719 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002442/0.397, allocations: 1.294 MB / 428 MB, free: 2.195 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004788/0.4018, allocations: 2.211 MB / 430.2 MB, free: 15.77 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.327e-05/0.4019, allocations: 8 kB / 430.2 MB, free: 15.76 MB / 350.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.006735/0.4086, allocations: 2.486 MB / 432.7 MB, free: 13.25 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.542e-05/0.4087, allocations: 12 kB / 432.7 MB, free: 13.24 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.301e-05/0.4087, allocations: 16 kB / 432.8 MB, free: 13.22 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009911/0.4097, allocations: 235.6 kB / 433 MB, free: 12.98 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002464/0.4122, allocations: 423.3 kB / 433.4 MB, free: 12.57 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003722/0.4159, allocations: 3.007 MB / 436.4 MB, free: 9.293 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002624/0.4186, allocations: 127.7 kB / 436.5 MB, free: 9.168 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002304/0.4188, allocations: 71.98 kB / 436.6 MB, free: 9.098 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 74 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (198): * Single equations (assignments): 194 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002761/0.4216, allocations: 0.8212 MB / 437.4 MB, free: 8.266 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007232/0.4223, allocations: 193.6 kB / 437.6 MB, free: 8.074 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005413/0.4278, allocations: 2.046 MB / 439.7 MB, free: 6.004 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.871e-05/0.4278, allocations: 12 kB / 439.7 MB, free: 5.992 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.086e-05/0.4278, allocations: 144 / 439.7 MB, free: 5.992 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.089e-05/0.4278, allocations: 7.969 kB / 439.7 MB, free: 5.984 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0128/0.4407, allocations: 4.763 MB / 444.4 MB, free: 1.152 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.166e-05/0.4407, allocations: 0 / 444.4 MB, free: 1.152 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001531/0.4423, allocations: 263.6 kB / 444.7 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000803/0.4431, allocations: 203.5 kB / 444.9 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001132/0.4432, allocations: 27.98 kB / 444.9 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00337/0.4466, allocations: 2.988 MB / 447.9 MB, free: 13.41 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.531e-06/0.4466, allocations: 3.938 kB / 447.9 MB, free: 13.4 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007054/0.4537, allocations: 3.137 MB / 451 MB, free: 10.2 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001534/0.4553, allocations: 434.6 kB / 451.5 MB, free: 9.758 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004994/0.4558, allocations: 24 kB / 451.5 MB, free: 9.734 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001556/0.4573, allocations: 103.8 kB / 451.6 MB, free: 9.633 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002702/0.4576, allocations: 80.95 kB / 451.7 MB, free: 9.555 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001241/0.4578, allocations: 32 kB / 451.7 MB, free: 9.523 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.003232/0.461, allocations: 1.224 MB / 452.9 MB, free: 8.309 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.81e-07/0.461, allocations: 3.938 kB / 452.9 MB, free: 8.305 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001964/0.463, allocations: 488 kB / 453.4 MB, free: 7.828 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (121): * Single equations (assignments): 117 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004306/0.4634, allocations: 204 kB / 453.6 MB, free: 7.625 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003922/0.4674, allocations: 2.347 MB / 456 MB, free: 5.211 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.052e-06/0.4674, allocations: 0 / 456 MB, free: 5.211 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00242/0.4698, allocations: 1.343 MB / 457.3 MB, free: 3.801 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004829/0.4747, allocations: 472.3 kB / 457.8 MB, free: 3.348 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01382/0.4885, allocations: 6.101 MB / 463.9 MB, free: 13.18 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002633/0.4912, allocations: 2.01 MB / 465.9 MB, free: 11.13 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002624/0.4938, allocations: 0.496 MB / 466.4 MB, free: 10.63 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006715/0.4945, allocations: 139.3 kB / 466.5 MB, free: 10.5 MB / 382.1 MB Notification: Performance of SimCode: time 1.103e-06/0.4945, allocations: 0 / 466.5 MB, free: 10.5 MB / 382.1 MB Notification: Performance of Templates: time 0.06659/0.5611, allocations: 24.57 MB / 491.1 MB, free: 2.168 MB / 398.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches