Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00105/0.00105, allocations: 90.19 kB / 16.65 MB, free: 6.59 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001298/0.001298, allocations: 182.9 kB / 17.56 MB, free: 6.203 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.345/1.345, allocations: 223.3 MB / 241.6 MB, free: 14.38 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002594/0.0002595, allocations: 7.938 kB / 301.4 MB, free: 5.875 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1033/0.1036, allocations: 50.41 MB / 351.8 MB, free: 3.461 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.01149/0.1151, allocations: 10.27 MB / 362.1 MB, free: 9.145 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007105/0.1223, allocations: 3.548 MB / 365.7 MB, free: 5.586 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001484/0.1238, allocations: 63.69 kB / 365.7 MB, free: 5.523 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001892/0.1257, allocations: 0.707 MB / 366.4 MB, free: 4.812 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002276/0.128, allocations: 0.7693 MB / 367.2 MB, free: 4.039 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008444/0.1288, allocations: 403.6 kB / 367.6 MB, free: 3.645 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003209/0.132, allocations: 3.254 MB / 370.8 MB, free: 392 kB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2024/0.3345, allocations: 2.274 MB / 373.1 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001985/0.3365, allocations: 1.026 MB / 374.1 MB, free: 10.1 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002211/0.3388, allocations: 1.453 MB / 375.6 MB, free: 9.82 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003566/0.3391, allocations: 155.2 kB / 375.7 MB, free: 9.816 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007572/0.3399, allocations: 265 kB / 376 MB, free: 9.816 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009213/0.3408, allocations: 0.8022 MB / 376.8 MB, free: 9.703 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001611/0.3424, allocations: 1.398 MB / 378.2 MB, free: 9.227 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005132/0.3476, allocations: 4.557 MB / 382.8 MB, free: 8.668 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.69e-06/0.3476, allocations: 4 kB / 382.8 MB, free: 8.664 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.264e-06/0.3476, allocations: 0 / 382.8 MB, free: 8.664 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001402/0.3478, allocations: 0 / 382.8 MB, free: 8.664 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.007935/0.3557, allocations: 2.855 MB / 385.6 MB, free: 7.02 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.497e-05/0.3558, allocations: 9.781 kB / 385.6 MB, free: 7.02 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001262/0.3571, allocations: 343.6 kB / 386 MB, free: 6.848 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003223/0.3603, allocations: 1.771 MB / 387.7 MB, free: 6.094 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001866/0.3605, allocations: 198 kB / 387.9 MB, free: 6.082 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004276/0.3609, allocations: 250.2 kB / 388.2 MB, free: 6.074 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005555/0.3665, allocations: 3.291 MB / 391.5 MB, free: 4.449 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.301e-05/0.3666, allocations: 5 kB / 391.5 MB, free: 4.449 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002468/0.3668, allocations: 103.2 kB / 391.6 MB, free: 4.371 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001431/0.367, allocations: 121.8 kB / 391.7 MB, free: 4.352 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004364/0.3714, allocations: 2.757 MB / 394.4 MB, free: 2.957 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01567/0.387, allocations: 10.52 MB / 405 MB, free: 10.89 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00199/0.3891, allocations: 1.366 MB / 406.3 MB, free: 9.473 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001319/0.3904, allocations: 0.7941 MB / 407.1 MB, free: 8.68 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003117/0.3908, allocations: 205.7 kB / 407.3 MB, free: 8.441 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.387e-05/0.3908, allocations: 43.56 kB / 407.4 MB, free: 8.391 MB / 318.1 MB Notification: Performance of pre-optimization done (n=98): time 3.136e-06/0.3908, allocations: 0 / 407.4 MB, free: 8.391 MB / 318.1 MB Notification: Performance of matching and sorting (n=123): time 0.01587/0.4067, allocations: 6.943 MB / 414.3 MB, free: 1.359 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.358e-05/0.4068, allocations: 67.88 kB / 414.4 MB, free: 1.281 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00297/0.4098, allocations: 1.802 MB / 416.2 MB, free: 15.48 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001086/0.4099, allocations: 45.7 kB / 416.2 MB, free: 15.43 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009811/0.4109, allocations: 1.268 MB / 417.5 MB, free: 14.14 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003797/0.4113, allocations: 428.2 kB / 417.9 MB, free: 13.73 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001865/0.4115, allocations: 125.6 kB / 418 MB, free: 13.6 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001062/0.4116, allocations: 305.1 kB / 418.3 MB, free: 13.3 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001244/0.4128, allocations: 0.7808 MB / 419.1 MB, free: 12.52 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001597/0.4144, allocations: 1.293 MB / 420.4 MB, free: 11 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003023/0.4175, allocations: 2.218 MB / 422.6 MB, free: 8.621 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.448e-06/0.4175, allocations: 4 kB / 422.6 MB, free: 8.617 MB / 334.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004477/0.422, allocations: 2.482 MB / 425.1 MB, free: 6.215 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.808e-05/0.422, allocations: 14.34 kB / 425.1 MB, free: 6.203 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.429e-05/0.4221, allocations: 16 kB / 425.1 MB, free: 6.188 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00069/0.4228, allocations: 243.5 kB / 425.4 MB, free: 5.938 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00148/0.4243, allocations: 422.2 kB / 425.8 MB, free: 5.551 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002751/0.427, allocations: 2.991 MB / 428.8 MB, free: 2.316 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001773/0.4288, allocations: 123.8 kB / 428.9 MB, free: 2.195 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002024/0.429, allocations: 71.98 kB / 429 MB, free: 2.125 MB / 334.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.001808/0.4308, allocations: 0.8176 MB / 429.8 MB, free: 1.32 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005151/0.4314, allocations: 196.4 kB / 430 MB, free: 1.129 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003735/0.4351, allocations: 2.052 MB / 432 MB, free: 15.06 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.279e-05/0.4351, allocations: 12 kB / 432 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.518e-06/0.4352, allocations: 4 kB / 432 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.375e-05/0.4352, allocations: 3.984 kB / 432.1 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009404/0.4446, allocations: 4.759 MB / 436.8 MB, free: 10.24 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.442e-06/0.4446, allocations: 4 kB / 436.8 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001136/0.4458, allocations: 265.4 kB / 437.1 MB, free: 9.988 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000559/0.4463, allocations: 203.3 kB / 437.3 MB, free: 9.777 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.577e-05/0.4464, allocations: 27.98 kB / 437.3 MB, free: 9.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002626/0.4491, allocations: 2.979 MB / 440.3 MB, free: 6.527 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/0.4491, allocations: 4.031 kB / 440.3 MB, free: 6.523 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004888/0.454, allocations: 3.137 MB / 443.4 MB, free: 3.336 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001112/0.4551, allocations: 434.6 kB / 443.8 MB, free: 2.891 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002382/0.4554, allocations: 24 kB / 443.9 MB, free: 2.867 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009854/0.4564, allocations: 103.9 kB / 444 MB, free: 2.766 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001875/0.4566, allocations: 83.7 kB / 444.1 MB, free: 2.688 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.73e-05/0.4566, allocations: 36 kB / 444.1 MB, free: 2.652 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002105/0.4588, allocations: 1.22 MB / 445.3 MB, free: 1.441 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.4588, allocations: 0 / 445.3 MB, free: 1.441 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001765/0.4605, allocations: 492 kB / 445.8 MB, free: 0.9609 MB / 350.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.0003868/0.4609, allocations: 192.2 kB / 446 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003523/0.4645, allocations: 2.346 MB / 448.3 MB, free: 14.42 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.611e-06/0.4645, allocations: 3.938 kB / 448.3 MB, free: 14.42 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001863/0.4664, allocations: 1.35 MB / 449.7 MB, free: 13.03 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00299/0.4694, allocations: 477.8 kB / 450.1 MB, free: 12.57 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008489/0.4779, allocations: 6.082 MB / 456.2 MB, free: 6.426 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001756/0.4796, allocations: 2.014 MB / 458.2 MB, free: 4.371 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001566/0.4812, allocations: 0.4921 MB / 458.7 MB, free: 3.875 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000444/0.4817, allocations: 139.4 kB / 458.9 MB, free: 3.738 MB / 366.1 MB Notification: Performance of SimCode: time 1.142e-06/0.4817, allocations: 0 / 458.9 MB, free: 3.738 MB / 366.1 MB Notification: Performance of Templates: time 0.04315/0.5248, allocations: 24.5 MB / 483.4 MB, free: 11.55 MB / 398.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches