Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.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_VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|dqCurrentController.PI_d.x|dqCurrentController.PI_q.x",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|dqCurrentController.PI_d.x|dqCurrentController.PI_q.x",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001119/0.001119, allocations: 113.7 kB / 18.45 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001074/0.001074, allocations: 206.7 kB / 19.41 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.489/1.489, allocations: 227.4 MB / 247.6 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001249/0.001249, allocations: 63.91 kB / 359.4 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2133/0.2146, allocations: 50.54 MB / 409.9 MB, free: 1.598 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource): time 0.01236/0.227, allocations: 11.92 MB / 421.9 MB, free: 5.613 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007184/0.2342, allocations: 4.039 MB / 425.9 MB, free: 1.559 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001856/0.2361, allocations: 79.62 kB / 426 MB, free: 1.48 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002365/0.2385, allocations: 0.8924 MB / 426.9 MB, free: 0.582 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003054/0.2416, allocations: 0.9746 MB / 427.8 MB, free: 15.6 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001339/0.243, allocations: 0.5539 MB / 428.4 MB, free: 15.04 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004244/0.2472, allocations: 3.41 MB / 431.8 MB, free: 11.62 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003582/0.2508, allocations: 3.088 MB / 434.9 MB, free: 8.465 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002137/0.253, allocations: 1.592 MB / 436.5 MB, free: 6.867 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002716/0.2557, allocations: 2.043 MB / 438.5 MB, free: 4.816 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008295/0.2566, allocations: 436 kB / 439 MB, free: 4.391 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001203/0.2578, allocations: 0.5466 MB / 439.5 MB, free: 3.844 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001144/0.259, allocations: 1.262 MB / 440.8 MB, free: 2.578 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002058/0.261, allocations: 1.944 MB / 442.7 MB, free: 0.625 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00532/0.2664, allocations: 5.698 MB / 448.4 MB, free: 10.91 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.79e-06/0.2664, allocations: 0 / 448.4 MB, free: 10.91 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.2664, allocations: 0 / 448.4 MB, free: 10.91 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001099/0.2665, allocations: 0 / 448.4 MB, free: 10.91 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 775 * Number of variables: 775 Notification: Performance of Generate backend data structure: time 0.008246/0.2748, allocations: 3.943 MB / 452.4 MB, free: 6.898 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.834e-05/0.2748, allocations: 8.031 kB / 452.4 MB, free: 6.891 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001208/0.276, allocations: 408.4 kB / 452.8 MB, free: 6.488 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003775/0.2798, allocations: 2.138 MB / 454.9 MB, free: 4.297 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001681/0.28, allocations: 226.2 kB / 455.1 MB, free: 4.074 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005334/0.2806, allocations: 295.8 kB / 455.4 MB, free: 3.785 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006805/0.2874, allocations: 3.851 MB / 459.3 MB, free: 15.86 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.57e-05/0.2875, allocations: 11.84 kB / 459.3 MB, free: 15.84 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003067/0.2878, allocations: 120 kB / 459.4 MB, free: 15.73 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001474/0.288, allocations: 149.7 kB / 459.5 MB, free: 15.58 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006079/0.2941, allocations: 3.251 MB / 462.8 MB, free: 12.32 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02099/0.3151, allocations: 12.02 MB / 474.8 MB, free: 15.93 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002723/0.3179, allocations: 1.941 MB / 476.7 MB, free: 13.88 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002008/0.3199, allocations: 1.149 MB / 477.9 MB, free: 12.73 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003383/0.3203, allocations: 207.4 kB / 478.1 MB, free: 12.49 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.634e-05/0.3203, allocations: 51.88 kB / 478.1 MB, free: 12.43 MB / 398.1 MB Notification: Performance of pre-optimization done (n=139): time 3.727e-06/0.3203, allocations: 0 / 478.1 MB, free: 12.43 MB / 398.1 MB Notification: Performance of matching and sorting (n=155): time 0.01434/0.3347, allocations: 7.023 MB / 485.2 MB, free: 5.273 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.498e-05/0.3347, allocations: 64.72 kB / 485.2 MB, free: 5.199 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003428/0.3382, allocations: 2.032 MB / 487.3 MB, free: 3.129 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000265/0.3385, allocations: 53.7 kB / 487.3 MB, free: 3.07 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001033/0.3395, allocations: 1.46 MB / 488.8 MB, free: 1.594 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005773/0.3401, allocations: 0.5353 MB / 489.3 MB, free: 1.051 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006452/0.3408, allocations: 347.3 kB / 489.7 MB, free: 0.7031 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 8.74e-05/0.3409, allocations: 309.1 kB / 490 MB, free: 408 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001447/0.3423, allocations: 0.8785 MB / 490.8 MB, free: 15.52 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00176/0.3441, allocations: 1.45 MB / 492.3 MB, free: 13.81 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003451/0.3476, allocations: 2.506 MB / 494.8 MB, free: 11.06 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.715e-05/0.3476, allocations: 8 kB / 494.8 MB, free: 11.05 MB / 414.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.005284/0.3529, allocations: 3.01 MB / 497.8 MB, free: 8 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.139e-05/0.353, allocations: 15.98 kB / 497.8 MB, free: 7.984 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.173e-05/0.353, allocations: 24 kB / 497.8 MB, free: 7.961 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008915/0.3539, allocations: 391.5 kB / 498.2 MB, free: 7.566 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001752/0.3557, allocations: 471.2 kB / 498.7 MB, free: 7.105 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006065/0.3617, allocations: 6.693 MB / 0.4935 GB, free: 0 / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001821/0.3636, allocations: 136.1 kB / 0.4937 GB, free: 15.86 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002837/0.3639, allocations: 91.92 kB / 0.4938 GB, free: 15.77 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 81 * Number of states: 0 () * Number of discrete variables: 1 (sinCosEvaluation.integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (228): * Single equations (assignments): 224 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(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): 3 systems {(2,9,100.0%), (1,6,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001743/0.3657, allocations: 0.9342 MB / 0.4947 GB, free: 14.83 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005515/0.3662, allocations: 213.3 kB / 0.4949 GB, free: 14.62 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004619/0.3708, allocations: 2.617 MB / 0.4974 GB, free: 11.96 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.635e-05/0.3709, allocations: 16 kB / 0.4974 GB, free: 11.95 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.139e-05/0.3709, allocations: 0 / 0.4974 GB, free: 11.95 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.284e-05/0.3709, allocations: 15.95 kB / 0.4975 GB, free: 11.93 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01023/0.3812, allocations: 5.807 MB / 0.5031 GB, free: 5.973 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-05/0.3812, allocations: 4 kB / 0.5031 GB, free: 5.969 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001271/0.3825, allocations: 292.1 kB / 0.5034 GB, free: 5.684 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001026/0.3836, allocations: 414.8 kB / 0.5038 GB, free: 5.266 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001385/0.3837, allocations: 39.98 kB / 0.5038 GB, free: 5.227 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007158/0.3909, allocations: 8.249 MB / 0.5119 GB, free: 12.42 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.18e-06/0.3909, allocations: 4 kB / 0.5119 GB, free: 12.41 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005844/0.3968, allocations: 3.838 MB / 0.5157 GB, free: 8.473 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001022/0.3978, allocations: 490.1 kB / 0.5161 GB, free: 7.973 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000431/0.3983, allocations: 36 kB / 0.5162 GB, free: 7.938 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001236/0.3995, allocations: 99.81 kB / 0.5162 GB, free: 7.84 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002272/0.3997, allocations: 109.1 kB / 0.5164 GB, free: 7.734 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001062/0.3999, allocations: 47.98 kB / 0.5164 GB, free: 7.688 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002252/0.4021, allocations: 1.39 MB / 0.5178 GB, free: 6.277 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.683e-06/0.4021, allocations: 192 / 0.5178 GB, free: 6.277 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00205/0.4042, allocations: 0.5663 MB / 0.5183 GB, free: 5.711 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 7 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],quadraticSpeedDependentTorque.phi,dqCurrentController.PI_d.x,dqCurrentController.PI_q.x,sinCosEvaluation.der1.u) * 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 (146): * Single equations (assignments): 142 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(2,9,100.0%), (1,6,100.0%), (1,1,100.0%), (2,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.0004525/0.4047, allocations: 206.8 kB / 0.5185 GB, free: 5.5 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003938/0.4086, allocations: 2.637 MB / 0.5211 GB, free: 2.805 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.166e-06/0.4086, allocations: 4.125 kB / 0.5211 GB, free: 2.801 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002121/0.4108, allocations: 1.573 MB / 0.5226 GB, free: 1.18 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002863/0.4136, allocations: 0.5499 MB / 0.5232 GB, free: 0.6406 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009977/0.4236, allocations: 5.93 MB / 0.5289 GB, free: 10.62 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002286/0.426, allocations: 2.22 MB / 0.5311 GB, free: 8.375 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007918/0.4268, allocations: 175.4 kB / 0.5313 GB, free: 8.203 MB / 462.1 MB Notification: Performance of SimCode: time 9.62e-07/0.4268, allocations: 0 / 0.5313 GB, free: 8.203 MB / 462.1 MB Notification: Performance of Templates: time 0.2534/0.6801, allocations: 95.07 MB / 0.6241 GB, free: 44.53 MB / 462.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_VoltageSource/SMPM_VoltageSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches