Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.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.0008516/0.0008516, allocations: 87.62 kB / 21.43 MB, free: 3.133 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.004421/0.004421, allocations: 166.4 kB / 24.7 MB, free: 9.43 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8462/0.8462, allocations: 158.6 MB / 186.5 MB, free: 3.031 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.Spice3.Examples.InvertersApartRecord,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.774e-06/1.774e-06, allocations: 0 / 298.4 MB, free: 3.523 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.867e-05/2.045e-05, allocations: 2.281 kB / 298.4 MB, free: 3.52 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.1334/0.1334, allocations: 11.81 MB / 310.2 MB, free: 8.98 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.01715/0.1506, allocations: 17.05 MB / 327.3 MB, free: 13.32 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002644/0.1532, allocations: 138 kB / 327.4 MB, free: 13.23 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002776/0.156, allocations: 1.12 MB / 328.6 MB, free: 12.66 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008591/0.1646, allocations: 2.384 MB / 330.9 MB, free: 10.89 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004423/0.169, allocations: 1.393 MB / 332.3 MB, free: 9.824 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.009784/0.1788, allocations: 6.566 MB / 338.9 MB, free: 6.199 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001143/0.18, allocations: 257.8 kB / 339.1 MB, free: 5.922 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003/0.183, allocations: 1.43 MB / 340.6 MB, free: 4.488 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009529/0.1839, allocations: 0.763 MB / 341.3 MB, free: 3.723 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001762/0.1841, allocations: 80 kB / 341.4 MB, free: 3.645 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003284/0.1874, allocations: 1.089 MB / 342.5 MB, free: 2.551 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003143/0.1877, allocations: 333.5 kB / 342.8 MB, free: 2.223 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001316/0.189, allocations: 0.7437 MB / 343.6 MB, free: 1.477 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004457/0.1935, allocations: 3.787 MB / 347.4 MB, free: 13.68 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.438e-06/0.1935, allocations: 0 / 347.4 MB, free: 13.68 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.856e-06/0.1935, allocations: 0 / 347.4 MB, free: 13.68 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001399/0.1936, allocations: 0 / 347.4 MB, free: 13.68 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: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.004263/0.1979, allocations: 3.711 MB / 351.1 MB, free: 9.906 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.932e-05/0.1979, allocations: 17.3 kB / 351.1 MB, free: 9.891 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.941e-05/0.198, allocations: 102.5 kB / 351.2 MB, free: 9.781 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004183/0.1984, allocations: 417.4 kB / 351.6 MB, free: 9.371 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002367/0.2008, allocations: 2.307 MB / 353.9 MB, free: 6.969 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.455e-05/0.2008, allocations: 33 kB / 353.9 MB, free: 6.934 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.941e-05/0.2009, allocations: 59.89 kB / 354 MB, free: 6.875 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008546/0.2018, allocations: 0.7304 MB / 354.7 MB, free: 6.141 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.163e-05/0.2018, allocations: 7.938 kB / 354.7 MB, free: 6.133 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.56e-05/0.2018, allocations: 23.98 kB / 354.8 MB, free: 6.109 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.554e-05/0.2019, allocations: 16 kB / 354.8 MB, free: 6.094 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009379/0.2028, allocations: 0.8241 MB / 355.6 MB, free: 5.273 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003082/0.2059, allocations: 2.853 MB / 358.4 MB, free: 2.344 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006881/0.2066, allocations: 0.5202 MB / 359 MB, free: 1.816 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005817/0.2071, allocations: 0.5662 MB / 359.5 MB, free: 1.242 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01468/0.2218, allocations: 13.74 MB / 373.3 MB, free: 3.133 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004758/0.2223, allocations: 373.9 kB / 373.6 MB, free: 2.754 MB / 330.7 MB Notification: Performance of pre-optimization done (n=49): time 1.703e-06/0.2223, allocations: 0 / 373.6 MB, free: 2.754 MB / 330.7 MB Notification: Performance of matching and sorting (n=49): time 0.001547/0.2239, allocations: 1.116 MB / 374.8 MB, free: 1.629 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.777e-05/0.2239, allocations: 59.41 kB / 374.8 MB, free: 1.559 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00231/0.2262, allocations: 2.975 MB / 377.8 MB, free: 14.57 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.367e-05/0.2262, allocations: 37.7 kB / 377.8 MB, free: 14.53 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008224/0.2271, allocations: 1.506 MB / 379.3 MB, free: 13.02 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001009/0.2272, allocations: 174.6 kB / 379.5 MB, free: 12.84 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001897/0.2273, allocations: 222.4 kB / 379.7 MB, free: 12.62 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.536e-05/0.2274, allocations: 341.9 kB / 380 MB, free: 12.28 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003237/0.2278, allocations: 237.9 kB / 380.3 MB, free: 12.05 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004826/0.2282, allocations: 0.6057 MB / 380.9 MB, free: 11.27 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008522/0.2291, allocations: 0.8945 MB / 381.8 MB, free: 10.2 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.261e-06/0.2291, allocations: 4.625 kB / 381.8 MB, free: 10.2 MB / 346.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001263/0.2304, allocations: 1.256 MB / 383 MB, free: 8.938 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.142e-05/0.2304, allocations: 11.98 kB / 383.1 MB, free: 8.926 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.991e-05/0.2304, allocations: 83.94 kB / 383.1 MB, free: 8.844 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.183e-05/0.2305, allocations: 20 kB / 383.2 MB, free: 8.824 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004197/0.2309, allocations: 200 kB / 383.4 MB, free: 8.629 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.327e-05/0.2309, allocations: 31.42 kB / 383.4 MB, free: 8.602 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004775/0.2314, allocations: 119.2 kB / 383.5 MB, free: 8.484 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.975e-05/0.2315, allocations: 64 kB / 383.6 MB, free: 8.422 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * Number of states: 0 () * Number of discrete variables: 14 (vin.counter,$PRE.vin.counter,v.counter,$PRE.v.counter,v.counter2,$PRE.v.counter2,v.T0,$PRE.v.T0,vin.counter2,$PRE.vin.counter2,vin.T0,$PRE.vin.T0,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (102): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004446/0.2319, allocations: 429.5 kB / 384 MB, free: 7.992 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002186/0.2321, allocations: 405.4 kB / 384.4 MB, free: 7.594 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001586/0.2337, allocations: 1.199 MB / 385.6 MB, free: 6.391 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.18e-06/0.2337, allocations: 4 kB / 385.6 MB, free: 6.387 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.2337, allocations: 0 / 385.6 MB, free: 6.387 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.388e-06/0.2337, allocations: 4 kB / 385.6 MB, free: 6.383 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001903/0.2356, allocations: 2.027 MB / 387.6 MB, free: 4.289 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.899e-05/0.2357, allocations: 75.92 kB / 387.7 MB, free: 4.215 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002353/0.2359, allocations: 87.98 kB / 387.8 MB, free: 4.129 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.877e-06/0.2359, allocations: 4 kB / 387.8 MB, free: 4.125 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.603e-05/0.2359, allocations: 32 kB / 387.8 MB, free: 4.094 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.49e-06/0.236, allocations: 7.922 kB / 387.8 MB, free: 4.086 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.236, allocations: 4 kB / 387.8 MB, free: 4.082 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001461/0.2374, allocations: 1.312 MB / 389.1 MB, free: 2.742 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004317/0.2378, allocations: 423.2 kB / 389.5 MB, free: 2.324 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000154/0.238, allocations: 8 kB / 389.5 MB, free: 2.316 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003475/0.2383, allocations: 43.89 kB / 389.6 MB, free: 2.273 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001105/0.2385, allocations: 59.94 kB / 389.7 MB, free: 2.215 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.358e-05/0.2385, allocations: 39.98 kB / 389.7 MB, free: 2.176 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001563/0.2401, allocations: 1.92 MB / 391.6 MB, free: 264 kB / 346.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2401, allocations: 0 / 391.6 MB, free: 264 kB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008683/0.2409, allocations: 0.593 MB / 392.2 MB, free: 15.66 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (c1.vinternal,c2.vinternal) * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,vin.T0,vin.counter,vin.counter2,v.T0,v.counter,v.counter2) * Number of discrete states: 4 (vin.counter2,v.counter2,vin.counter,v.counter) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 6 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002319/0.2433, allocations: 2.605 MB / 394.8 MB, free: 13.02 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0009065/0.2442, allocations: 0.7826 MB / 395.6 MB, free: 12.21 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.2442, allocations: 0 / 395.6 MB, free: 12.21 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007161/0.2449, allocations: 423.8 kB / 396 MB, free: 11.77 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001122/0.246, allocations: 0.5179 MB / 396.5 MB, free: 11.26 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01702/0.263, allocations: 16.46 MB / 413 MB, free: 10.27 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006432/0.2637, allocations: 1.114 MB / 414.1 MB, free: 9.125 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0006575/0.2643, allocations: 357.3 kB / 414.4 MB, free: 8.77 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007695/0.2651, allocations: 1.227 MB / 415.7 MB, free: 7.543 MB / 378.7 MB Notification: Performance of SimCode: time 7.31e-07/0.2651, allocations: 0 / 415.7 MB, free: 7.543 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2154/0.4805, allocations: 64.6 MB / 480.3 MB, free: 142.8 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.551/10.03, allocations: 6.562 kB / 480.3 MB, free: 142.8 MB / 426.7 MB " [Timeout remaining time 650] (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_InvertersApartRecord_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_InvertersApartRecord.fmu > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/InvertersApartRecord/InvertersApartRecord.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 12.165537015534937]