Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001155/0.001155, allocations: 79.69 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001135/0.001135, allocations: 170 kB / 23.95 MB, free: 0.6094 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8898/0.8898, allocations: 177.1 MB / 204.3 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.422e-06/1.422e-06, allocations: 0 / 324.6 MB, free: 15.79 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.518e-05/1.66e-05, allocations: 6.219 kB / 324.6 MB, free: 15.79 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.00706/0.007076, allocations: 8.584 MB / 333.2 MB, free: 7.16 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004209/0.01129, allocations: 2.995 MB / 336.2 MB, free: 4.156 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007369/0.01202, allocations: 75.5 kB / 336.2 MB, free: 4.082 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001049/0.01307, allocations: 0.6635 MB / 336.9 MB, free: 3.414 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001223/0.01429, allocations: 0.842 MB / 337.7 MB, free: 2.566 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004702/0.01476, allocations: 403.3 kB / 338.1 MB, free: 2.172 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001821/0.01659, allocations: 2.641 MB / 340.8 MB, free: 15.52 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001256/0.01784, allocations: 1.256 MB / 342 MB, free: 14.2 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001423/0.01926, allocations: 1.781 MB / 343.8 MB, free: 12.41 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001207/0.02047, allocations: 1.29 MB / 345.1 MB, free: 11.12 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002993/0.02077, allocations: 324 kB / 345.4 MB, free: 10.8 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004749/0.02125, allocations: 427.7 kB / 345.8 MB, free: 10.39 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000571/0.02182, allocations: 0.931 MB / 346.8 MB, free: 9.453 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007966/0.02261, allocations: 0.9782 MB / 347.8 MB, free: 8.473 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002972/0.02559, allocations: 4.218 MB / 352 MB, free: 4.242 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.387e-06/0.02559, allocations: 0 / 352 MB, free: 4.242 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.544e-06/0.02559, allocations: 8 kB / 352 MB, free: 4.234 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.951e-05/0.02562, allocations: 0 / 352 MB, free: 4.234 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 553 * Number of variables: 553 Notification: Performance of Generate backend data structure: time 0.003658/0.02928, allocations: 2.873 MB / 354.8 MB, free: 1.312 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.152e-05/0.02933, allocations: 12.03 kB / 354.9 MB, free: 1.301 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000276/0.02961, allocations: 308.2 kB / 355.2 MB, free: 0.9883 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000465/0.03007, allocations: 311.2 kB / 355.5 MB, free: 0.6836 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001891/0.03196, allocations: 1.468 MB / 356.9 MB, free: 15.17 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.18e-05/0.03205, allocations: 160.6 kB / 357.1 MB, free: 15.01 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002065/0.03226, allocations: 218.8 kB / 357.3 MB, free: 14.8 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002801/0.03506, allocations: 2.9 MB / 360.2 MB, free: 11.79 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.718e-05/0.0351, allocations: 3.953 kB / 360.2 MB, free: 11.78 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001294/0.03523, allocations: 91.92 kB / 360.3 MB, free: 11.69 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.496e-05/0.0353, allocations: 108.1 kB / 360.4 MB, free: 11.58 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002436/0.03774, allocations: 2.343 MB / 362.7 MB, free: 9.223 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007386/0.04512, allocations: 7.701 MB / 370.4 MB, free: 1.281 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001586/0.04671, allocations: 1.172 MB / 371.6 MB, free: 100 kB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009971/0.04771, allocations: 0.9084 MB / 372.5 MB, free: 15.19 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001432/0.04785, allocations: 52.91 kB / 372.6 MB, free: 15.14 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.852e-05/0.04788, allocations: 43.5 kB / 372.6 MB, free: 15.09 MB / 346.7 MB Notification: Performance of pre-optimization done (n=101): time 1.974e-06/0.04788, allocations: 0 / 372.6 MB, free: 15.09 MB / 346.7 MB Notification: Performance of matching and sorting (n=116): time 0.007513/0.05539, allocations: 5.727 MB / 378.3 MB, free: 9.32 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.881e-05/0.05543, allocations: 68.41 kB / 378.4 MB, free: 9.242 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00126/0.05669, allocations: 1.465 MB / 379.9 MB, free: 7.766 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.431e-05/0.05675, allocations: 45.7 kB / 379.9 MB, free: 7.715 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004822/0.05723, allocations: 1.067 MB / 381 MB, free: 6.637 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002009/0.05743, allocations: 424.4 kB / 381.4 MB, free: 6.219 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002455/0.05768, allocations: 259.5 kB / 381.7 MB, free: 5.961 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001015/0.05778, allocations: 361.9 kB / 382 MB, free: 5.602 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006906/0.05847, allocations: 0.6871 MB / 382.7 MB, free: 4.914 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008627/0.05933, allocations: 1.07 MB / 383.8 MB, free: 3.684 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001949/0.06128, allocations: 1.871 MB / 385.6 MB, free: 1.648 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.418e-06/0.06128, allocations: 0 / 385.6 MB, free: 1.648 MB / 346.7 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.002398/0.06368, allocations: 2.347 MB / 388 MB, free: 15.28 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.433e-05/0.06371, allocations: 12 kB / 388 MB, free: 15.27 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.3e-05/0.06372, allocations: 12 kB / 388 MB, free: 15.26 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005804/0.0643, allocations: 419.2 kB / 388.4 MB, free: 14.84 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006122/0.06491, allocations: 331.5 kB / 388.7 MB, free: 14.51 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004385/0.0693, allocations: 6.677 MB / 395.4 MB, free: 7.488 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005066/0.0698, allocations: 103.8 kB / 395.5 MB, free: 7.387 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.707e-05/0.06987, allocations: 56 kB / 395.6 MB, free: 7.332 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * 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 (157): * Single equations (assignments): 153 * 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 {(3,11,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.0006786/0.07055, allocations: 0.6927 MB / 396.3 MB, free: 6.629 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001479/0.0707, allocations: 167 kB / 396.4 MB, free: 6.465 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002088/0.07279, allocations: 2.044 MB / 398.5 MB, free: 4.398 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.222e-06/0.07279, allocations: 12 kB / 398.5 MB, free: 4.387 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.571e-06/0.0728, allocations: 4 kB / 398.5 MB, free: 4.383 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.11e-05/0.07281, allocations: 7.969 kB / 398.5 MB, free: 4.375 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004467/0.07728, allocations: 4.222 MB / 402.7 MB, free: 48 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.5e-06/0.07728, allocations: 4 kB / 402.7 MB, free: 44 kB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004569/0.07774, allocations: 216.1 kB / 402.9 MB, free: 15.83 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006131/0.07835, allocations: 458.5 kB / 403.4 MB, free: 15.38 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.362e-05/0.0784, allocations: 31.98 kB / 403.4 MB, free: 15.34 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005303/0.08371, allocations: 8.146 MB / 411.6 MB, free: 6.742 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.436e-06/0.08371, allocations: 7.938 kB / 411.6 MB, free: 6.734 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003179/0.08689, allocations: 3.021 MB / 414.6 MB, free: 3.645 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000451/0.08734, allocations: 302.8 kB / 414.9 MB, free: 3.348 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001113/0.08745, allocations: 35.92 kB / 414.9 MB, free: 3.312 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004333/0.08789, allocations: 79.91 kB / 415 MB, free: 3.234 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001659/0.08805, allocations: 96.77 kB / 415.1 MB, free: 3.141 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.79e-05/0.0881, allocations: 39.92 kB / 415.1 MB, free: 3.102 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0009856/0.08908, allocations: 0.9966 MB / 416.1 MB, free: 2.105 MB / 378.7 MB Notification: Performance of sort global known variables: time 6e-08/0.08908, allocations: 0 / 416.1 MB, free: 2.105 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001031/0.09012, allocations: 463.9 kB / 416.6 MB, free: 1.652 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 7 (smr.inertiaRotor.w,smr.idq_sr[1],smr.idq_sr[2],smr.idq_dr[1],smr.idq_dr[2],vfController.x,loadInertia.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 (102): * Single equations (assignments): 98 * 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 {(3,11,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.003305/0.09342, allocations: 3.655 MB / 420.2 MB, free: 13.91 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002387/0.09581, allocations: 2.087 MB / 422.3 MB, free: 11.79 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.09581, allocations: 0 / 422.3 MB, free: 11.79 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001216/0.09703, allocations: 1.388 MB / 423.7 MB, free: 10.35 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001039/0.09806, allocations: 433.3 kB / 424.1 MB, free: 9.93 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01822/0.1163, allocations: 16.7 MB / 440.8 MB, free: 8.574 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001191/0.1175, allocations: 1.235 MB / 442.1 MB, free: 7.297 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0007046/0.1182, allocations: 365.6 kB / 442.4 MB, free: 6.934 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006895/0.1189, allocations: 0.8205 MB / 443.2 MB, free: 6.113 MB / 410.7 MB Notification: Performance of SimCode: time 1.182e-06/0.1189, allocations: 0 / 443.2 MB, free: 6.113 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2052/0.3241, allocations: 44.98 MB / 488.2 MB, free: 84.43 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.783/8.107, allocations: 4 kB / 488.2 MB, free: 84.42 MB / 410.7 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_Inverter_fmu --startTime=0 --stopTime=1.5 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_Inverter.fmu > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMR_Inverter/SMR_Inverter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 10.982446269132197]