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.0008169/0.0008169, allocations: 83.64 kB / 21.43 MB, free: 3.137 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.003113/0.003113, allocations: 164.1 kB / 24.7 MB, free: 9.414 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.8296/0.8296, allocations: 158.6 MB / 186.5 MB, free: 3.035 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.362e-06/1.362e-06, allocations: 0 / 298.4 MB, free: 3.535 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.186e-05/1.322e-05, allocations: 2.281 kB / 298.4 MB, free: 3.531 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.141/0.141, allocations: 11.82 MB / 310.3 MB, free: 8.965 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.01508/0.156, allocations: 17.04 MB / 327.3 MB, free: 13.32 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001838/0.1579, allocations: 137.7 kB / 327.4 MB, free: 13.23 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002166/0.16, allocations: 1.121 MB / 328.6 MB, free: 12.66 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004729/0.1648, allocations: 2.386 MB / 330.9 MB, free: 10.9 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003191/0.168, allocations: 1.393 MB / 332.3 MB, free: 9.836 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.006772/0.1747, allocations: 6.563 MB / 338.9 MB, free: 6.207 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005647/0.1753, allocations: 261.8 kB / 339.1 MB, free: 5.926 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001562/0.1769, allocations: 1.43 MB / 340.6 MB, free: 4.492 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007166/0.1776, allocations: 0.7591 MB / 341.3 MB, free: 3.73 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001281/0.1777, allocations: 80 kB / 341.4 MB, free: 3.652 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002345/0.1801, allocations: 1.089 MB / 342.5 MB, free: 2.559 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001598/0.1802, allocations: 333.5 kB / 342.8 MB, free: 2.23 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005826/0.1808, allocations: 0.7437 MB / 343.6 MB, free: 1.484 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002776/0.1836, allocations: 3.78 MB / 347.4 MB, free: 13.69 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.588e-06/0.1836, allocations: 4 kB / 347.4 MB, free: 13.69 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.724e-06/0.1836, allocations: 0 / 347.4 MB, free: 13.69 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.432e-05/0.1836, allocations: 0 / 347.4 MB, free: 13.69 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.003498/0.1871, allocations: 3.718 MB / 351.1 MB, free: 9.91 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.914e-05/0.1872, allocations: 17.3 kB / 351.1 MB, free: 9.895 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.524e-05/0.1873, allocations: 98.5 kB / 351.2 MB, free: 9.789 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003067/0.1876, allocations: 417.4 kB / 351.6 MB, free: 9.379 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001995/0.1896, allocations: 2.3 MB / 353.9 MB, free: 6.984 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.27e-05/0.1896, allocations: 37 kB / 353.9 MB, free: 6.945 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.29e-05/0.1897, allocations: 63.88 kB / 354 MB, free: 6.883 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008126/0.1905, allocations: 0.7343 MB / 354.7 MB, free: 6.145 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.36e-05/0.1905, allocations: 4 kB / 354.7 MB, free: 6.141 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.609e-05/0.1905, allocations: 20 kB / 354.8 MB, free: 6.121 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.451e-05/0.1906, allocations: 19.98 kB / 354.8 MB, free: 6.102 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009221/0.1915, allocations: 0.8163 MB / 355.6 MB, free: 5.289 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003158/0.1946, allocations: 2.856 MB / 358.4 MB, free: 2.355 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000672/0.1953, allocations: 0.5202 MB / 359 MB, free: 1.828 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000562/0.1959, allocations: 0.5701 MB / 359.5 MB, free: 1.25 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01548/0.2114, allocations: 13.74 MB / 373.3 MB, free: 3.141 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005582/0.2119, allocations: 369.9 kB / 373.6 MB, free: 2.766 MB / 330.7 MB Notification: Performance of pre-optimization done (n=49): time 2.645e-06/0.2119, allocations: 0 / 373.6 MB, free: 2.766 MB / 330.7 MB Notification: Performance of matching and sorting (n=49): time 0.001446/0.2134, allocations: 1.112 MB / 374.7 MB, free: 1.645 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.248e-05/0.2134, allocations: 67.34 kB / 374.8 MB, free: 1.566 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00274/0.2162, allocations: 2.971 MB / 377.8 MB, free: 14.58 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.012e-05/0.2162, allocations: 41.69 kB / 377.8 MB, free: 14.54 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008866/0.2171, allocations: 1.499 MB / 379.3 MB, free: 13.03 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001028/0.2172, allocations: 174.5 kB / 379.5 MB, free: 12.86 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001862/0.2174, allocations: 226.4 kB / 379.7 MB, free: 12.63 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.763e-05/0.2175, allocations: 341.9 kB / 380 MB, free: 12.29 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003247/0.2178, allocations: 237.9 kB / 380.3 MB, free: 12.06 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004746/0.2183, allocations: 0.6057 MB / 380.9 MB, free: 11.28 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000875/0.2191, allocations: 0.8945 MB / 381.8 MB, free: 10.21 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.332e-06/0.2191, allocations: 4.625 kB / 381.8 MB, free: 10.21 MB / 346.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001196/0.2203, allocations: 1.256 MB / 383 MB, free: 8.949 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.699e-05/0.2204, allocations: 12 kB / 383 MB, free: 8.938 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.396e-05/0.2204, allocations: 87.92 kB / 383.1 MB, free: 8.852 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.297e-05/0.2204, allocations: 20 kB / 383.2 MB, free: 8.832 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003829/0.2208, allocations: 196 kB / 383.3 MB, free: 8.641 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.995e-05/0.2208, allocations: 35.42 kB / 383.4 MB, free: 8.609 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005034/0.2214, allocations: 115.2 kB / 383.5 MB, free: 8.496 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.817e-05/0.2214, allocations: 67.98 kB / 383.6 MB, free: 8.43 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.0004678/0.2219, allocations: 433.5 kB / 384 MB, free: 7.996 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002201/0.2221, allocations: 405.4 kB / 384.4 MB, free: 7.598 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001743/0.2239, allocations: 1.195 MB / 385.6 MB, free: 6.398 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.021e-06/0.2239, allocations: 4 kB / 385.6 MB, free: 6.395 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.2239, allocations: 0 / 385.6 MB, free: 6.395 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.771e-06/0.2239, allocations: 3.984 kB / 385.6 MB, free: 6.391 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001961/0.2258, allocations: 2.027 MB / 387.6 MB, free: 4.297 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.258e-05/0.2259, allocations: 72 kB / 387.7 MB, free: 4.227 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002364/0.2261, allocations: 95.97 kB / 387.8 MB, free: 4.133 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.466e-06/0.2261, allocations: 3.938 kB / 387.8 MB, free: 4.129 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.278e-05/0.2262, allocations: 32 kB / 387.8 MB, free: 4.098 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.645e-06/0.2262, allocations: 0 / 387.8 MB, free: 4.098 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.2262, allocations: 0 / 387.8 MB, free: 4.098 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001263/0.2274, allocations: 1.32 MB / 389.1 MB, free: 2.75 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004253/0.2279, allocations: 423.2 kB / 389.5 MB, free: 2.332 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001458/0.228, allocations: 15.94 kB / 389.6 MB, free: 2.316 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003454/0.2283, allocations: 35.97 kB / 389.6 MB, free: 2.281 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001125/0.2285, allocations: 67.86 kB / 389.7 MB, free: 2.215 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.327e-05/0.2285, allocations: 39.98 kB / 389.7 MB, free: 2.176 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001533/0.23, allocations: 1.916 MB / 391.6 MB, free: 268 kB / 346.7 MB Notification: Performance of sort global known variables: time 8e-08/0.23, allocations: 0 / 391.6 MB, free: 268 kB / 346.7 MB Notification: Performance of remove unused functions: time 0.001141/0.2312, allocations: 0.593 MB / 392.2 MB, free: 15.67 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.002169/0.2333, allocations: 2.605 MB / 394.8 MB, free: 13.03 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0008994/0.2342, allocations: 0.7748 MB / 395.6 MB, free: 12.22 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.2342, allocations: 0 / 395.6 MB, free: 12.22 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000423/0.2347, allocations: 427.8 kB / 396 MB, free: 11.78 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001125/0.2358, allocations: 0.5179 MB / 396.5 MB, free: 11.27 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0158/0.2516, allocations: 16.45 MB / 413 MB, free: 10.29 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009966/0.2526, allocations: 1.118 MB / 414.1 MB, free: 9.137 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0006647/0.2533, allocations: 361.3 kB / 414.4 MB, free: 8.777 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008271/0.2541, allocations: 1.223 MB / 415.7 MB, free: 7.555 MB / 378.7 MB Notification: Performance of SimCode: time 1.773e-06/0.2541, allocations: 4 kB / 415.7 MB, free: 7.551 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2021/0.4562, allocations: 64.6 MB / 480.3 MB, free: 142.9 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.728/10.18, allocations: 5.969 kB / 480.3 MB, free: 142.9 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 & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0009996 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.csv","/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] "Error: Could not read variable mp1.S.v in file Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.csv. Warning: Get data of variable mp1.S.v from file Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.csv failed! Error: Could not read variable mp2.S.v in file Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.csv. Warning: Get data of variable mp2.S.v from file Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.csv failed! Error: Could not read variable v.p.v in file Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.csv. Warning: Get data of variable v.p.v from file Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.91365859284997]