Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_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.001865/0.001865, allocations: 111.1 kB / 20.44 MB, free: 1.176 MB / 14.72 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.002435/0.002435, allocations: 201.9 kB / 23.73 MB, free: 4.379 MB / 14.72 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 1.411/1.411, allocations: 230.6 MB / 257.5 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] 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.SMPM_Inverter,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001526/0.001526, allocations: 55.91 kB / 377.7 MB, free: 2.953 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2355/0.237, allocations: 53.36 MB / 431.1 MB, free: 6.641 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.01189/0.2489, allocations: 9.152 MB / 440.3 MB, free: 13.46 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006381/0.2553, allocations: 3.279 MB / 443.5 MB, free: 10.16 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001078/0.2564, allocations: 75.5 kB / 443.6 MB, free: 10.09 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001732/0.2581, allocations: 0.7608 MB / 444.4 MB, free: 9.324 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002305/0.2604, allocations: 0.897 MB / 445.3 MB, free: 8.422 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009154/0.2614, allocations: 427.4 kB / 445.7 MB, free: 8.004 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003139/0.2645, allocations: 2.759 MB / 448.4 MB, free: 5.234 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001935/0.2664, allocations: 1.356 MB / 449.8 MB, free: 3.809 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001806/0.2682, allocations: 1.308 MB / 451.1 MB, free: 2.496 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002359/0.2706, allocations: 1.619 MB / 452.7 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005248/0.2711, allocations: 332 kB / 453 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008502/0.272, allocations: 447.8 kB / 453.5 MB, free: 112 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001064/0.273, allocations: 0.9543 MB / 454.4 MB, free: 15.15 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001535/0.2746, allocations: 1.217 MB / 455.7 MB, free: 13.93 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005258/0.2798, allocations: 4.426 MB / 460.1 MB, free: 9.488 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.267e-06/0.2798, allocations: 7.984 kB / 460.1 MB, free: 9.48 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.2798, allocations: 0 / 460.1 MB, free: 9.48 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001097/0.2799, allocations: 4 kB / 460.1 MB, free: 9.477 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: 581 * Number of variables: 581 Notification: Performance of Generate backend data structure: time 0.006737/0.2867, allocations: 3.065 MB / 463.2 MB, free: 6.363 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.293e-05/0.2867, allocations: 8.031 kB / 463.2 MB, free: 6.355 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004431/0.2872, allocations: 317 kB / 463.5 MB, free: 6.035 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009171/0.2881, allocations: 335 kB / 463.8 MB, free: 5.707 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003254/0.2913, allocations: 1.558 MB / 465.4 MB, free: 4.109 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001487/0.2915, allocations: 180.4 kB / 465.5 MB, free: 3.93 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003467/0.2918, allocations: 220 kB / 465.8 MB, free: 3.715 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005054/0.2969, allocations: 3.017 MB / 468.8 MB, free: 0.5859 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.453e-05/0.297, allocations: 15.92 kB / 468.8 MB, free: 0.5703 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002112/0.2972, allocations: 88 kB / 468.9 MB, free: 496 kB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001252/0.2973, allocations: 112.3 kB / 469 MB, free: 380 kB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004292/0.3016, allocations: 2.426 MB / 471.4 MB, free: 13.93 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01425/0.3158, allocations: 8.155 MB / 479.6 MB, free: 5.496 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002152/0.318, allocations: 1.19 MB / 480.7 MB, free: 4.305 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001714/0.3197, allocations: 0.9093 MB / 481.7 MB, free: 3.398 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002262/0.3199, allocations: 52.95 kB / 481.7 MB, free: 3.348 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.685e-05/0.32, allocations: 47.56 kB / 481.8 MB, free: 3.289 MB / 382.1 MB Notification: Performance of pre-optimization done (n=105): time 3.016e-06/0.32, allocations: 3.938 kB / 481.8 MB, free: 3.285 MB / 382.1 MB Notification: Performance of matching and sorting (n=122): time 0.01418/0.3342, allocations: 6.065 MB / 487.8 MB, free: 13.2 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.236e-05/0.3342, allocations: 68.34 kB / 487.9 MB, free: 13.12 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002304/0.3365, allocations: 1.593 MB / 489.5 MB, free: 11.52 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000122/0.3366, allocations: 49.7 kB / 489.5 MB, free: 11.46 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000873/0.3375, allocations: 1.13 MB / 490.7 MB, free: 10.32 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003954/0.3379, allocations: 452.2 kB / 491.1 MB, free: 9.871 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004553/0.3384, allocations: 275.5 kB / 491.4 MB, free: 9.594 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001459/0.3385, allocations: 305.1 kB / 491.7 MB, free: 9.293 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001215/0.3397, allocations: 0.7105 MB / 492.4 MB, free: 8.582 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001602/0.3413, allocations: 1.134 MB / 493.5 MB, free: 7.262 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00289/0.3442, allocations: 1.971 MB / 495.5 MB, free: 5.105 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.817e-06/0.3442, allocations: 4 kB / 495.5 MB, free: 5.102 MB / 398.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.004369/0.3486, allocations: 2.452 MB / 497.9 MB, free: 2.629 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.498e-05/0.3486, allocations: 12 kB / 498 MB, free: 2.617 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.537e-05/0.3486, allocations: 16 kB / 498 MB, free: 2.602 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001013/0.3497, allocations: 423.3 kB / 498.4 MB, free: 2.176 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001322/0.351, allocations: 347.5 kB / 498.7 MB, free: 1.836 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007376/0.3583, allocations: 6.777 MB / 0.4937 GB, free: 10.72 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00133/0.3597, allocations: 107.8 kB / 0.4938 GB, free: 10.62 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001219/0.3598, allocations: 67.92 kB / 0.4938 GB, free: 10.55 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * 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 (169): * Single equations (assignments): 165 * 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,12,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.001151/0.361, allocations: 0.7124 MB / 0.4945 GB, free: 9.828 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000311/0.3613, allocations: 186.9 kB / 0.4947 GB, free: 9.645 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003869/0.3651, allocations: 2.099 MB / 0.4967 GB, free: 7.52 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.372e-05/0.3651, allocations: 20.03 kB / 0.4968 GB, free: 7.5 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.152e-05/0.3652, allocations: 11.94 kB / 0.4968 GB, free: 7.488 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.006e-05/0.3652, allocations: 15.89 kB / 0.4968 GB, free: 7.473 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008139/0.3733, allocations: 4.411 MB / 0.5011 GB, free: 2.941 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.356e-06/0.3733, allocations: 4 kB / 0.5011 GB, free: 2.938 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009919/0.3743, allocations: 215.7 kB / 0.5013 GB, free: 2.727 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00119/0.3755, allocations: 455.4 kB / 0.5017 GB, free: 2.27 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.842e-05/0.3756, allocations: 35.98 kB / 0.5018 GB, free: 2.234 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008721/0.3843, allocations: 8.229 MB / 0.5098 GB, free: 9.551 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.14e-06/0.3843, allocations: 4 kB / 0.5098 GB, free: 9.547 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005225/0.3896, allocations: 3.148 MB / 0.5129 GB, free: 6.324 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009564/0.3905, allocations: 326.7 kB / 0.5132 GB, free: 6.004 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000245/0.3908, allocations: 35.98 kB / 0.5132 GB, free: 5.969 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009322/0.3917, allocations: 79.91 kB / 0.5133 GB, free: 5.891 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002282/0.3919, allocations: 108.7 kB / 0.5134 GB, free: 5.785 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.429e-05/0.392, allocations: 39.98 kB / 0.5135 GB, free: 5.746 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001585/0.3936, allocations: 1.071 MB / 0.5145 GB, free: 4.68 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3936, allocations: 0 / 0.5145 GB, free: 4.68 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001604/0.3952, allocations: 487.9 kB / 0.515 GB, free: 4.203 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 7 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],smpm.idq_rr[2],smpm.idq_dr[1],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 (107): * Single equations (assignments): 103 * 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,12,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.005567/0.4008, allocations: 3.781 MB / 0.5187 GB, free: 336 kB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003782/0.4045, allocations: 2.144 MB / 0.5208 GB, free: 14.14 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.163e-06/0.4045, allocations: 8 kB / 0.5208 GB, free: 14.13 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002426/0.407, allocations: 1.418 MB / 0.5221 GB, free: 12.67 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002243/0.4092, allocations: 488.6 kB / 0.5226 GB, free: 12.2 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2067/0.6159, allocations: 17.77 MB / 0.54 GB, free: 100.5 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001238/0.6172, allocations: 1.304 MB / 0.5412 GB, free: 100.2 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001018/0.6182, allocations: 392 kB / 0.5416 GB, free: 100.1 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008362/0.619, allocations: 0.8757 MB / 0.5425 GB, free: 99.43 MB / 446.1 MB Notification: Performance of SimCode: time 9.11e-07/0.619, allocations: 0 / 0.5425 GB, free: 99.43 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08222/0.7013, allocations: 49.16 MB / 0.5905 GB, free: 54.99 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.44/13.14, allocations: 14.84 kB / 0.5905 GB, free: 54.98 MB / 446.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter_fmu --startTime=0 --stopTime=1.5 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter.fmu > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_Inverter/SMPM_Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_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: 17.821377857995685]