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.001342/0.001342, allocations: 107.6 kB / 21.18 MB, free: 452 kB / 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.001474/0.001474, allocations: 216.1 kB / 24.47 MB, free: 3.777 MB / 14.72 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 1.414/1.414, allocations: 207.7 MB / 235.3 MB, free: 9.805 MB / 190.1 MB " [Timeout remaining time 178] 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: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001844/0.001844, allocations: 47.92 kB / 347.2 MB, free: 9.902 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2603/0.2622, allocations: 49.16 MB / 396.3 MB, free: 8.867 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01545/0.2776, allocations: 11.83 MB / 408.2 MB, free: 0.9102 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.03348/0.3111, allocations: 17.04 MB / 425.2 MB, free: 4.316 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003813/0.3149, allocations: 141.6 kB / 425.3 MB, free: 4.219 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004897/0.3198, allocations: 1.103 MB / 426.4 MB, free: 3.414 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0116/0.3314, allocations: 2.311 MB / 428.8 MB, free: 1.59 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006384/0.3378, allocations: 1.361 MB / 430.1 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0146/0.3524, allocations: 6.387 MB / 436.5 MB, free: 10.85 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009102/0.3533, allocations: 261.7 kB / 436.8 MB, free: 10.57 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002323/0.3557, allocations: 1.058 MB / 437.8 MB, free: 9.504 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002187/0.3578, allocations: 1.036 MB / 438.9 MB, free: 8.461 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003092/0.3582, allocations: 76 kB / 438.9 MB, free: 8.387 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005084/0.3632, allocations: 1.085 MB / 440 MB, free: 7.301 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005193/0.3638, allocations: 329.5 kB / 440.3 MB, free: 6.977 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00171/0.3655, allocations: 1.017 MB / 441.4 MB, free: 5.953 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007708/0.3732, allocations: 3.85 MB / 445.2 MB, free: 2.086 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.683e-06/0.3732, allocations: 4 kB / 445.2 MB, free: 2.082 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.933e-06/0.3732, allocations: 0 / 445.2 MB, free: 2.082 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.626e-05/0.3732, allocations: 0 / 445.2 MB, free: 2.082 MB / 350.1 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.006884/0.3801, allocations: 3.754 MB / 449 MB, free: 14.26 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.383e-05/0.3802, allocations: 15.98 kB / 449 MB, free: 14.25 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001367/0.3803, allocations: 98.5 kB / 449.1 MB, free: 14.14 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000497/0.3808, allocations: 421.4 kB / 449.5 MB, free: 13.73 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00375/0.3846, allocations: 2.319 MB / 451.8 MB, free: 11.32 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.62e-05/0.3846, allocations: 40.98 kB / 451.8 MB, free: 11.28 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001277/0.3847, allocations: 48 kB / 451.9 MB, free: 11.23 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001391/0.3861, allocations: 0.7343 MB / 452.6 MB, free: 10.49 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.539e-05/0.3861, allocations: 4 kB / 452.6 MB, free: 10.48 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.41e-05/0.3862, allocations: 16 kB / 452.6 MB, free: 10.47 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.599e-05/0.3862, allocations: 31.86 kB / 452.7 MB, free: 10.44 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001607/0.3878, allocations: 0.8163 MB / 453.5 MB, free: 9.617 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005298/0.3931, allocations: 2.86 MB / 456.4 MB, free: 6.688 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001213/0.3943, allocations: 0.5242 MB / 456.9 MB, free: 6.156 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009889/0.3953, allocations: 0.5662 MB / 457.4 MB, free: 5.582 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02572/0.4211, allocations: 13.74 MB / 471.2 MB, free: 7.465 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007945/0.4219, allocations: 361.7 kB / 471.5 MB, free: 7.094 MB / 382.1 MB Notification: Performance of pre-optimization done (n=49): time 2.555e-06/0.4219, allocations: 0 / 471.5 MB, free: 7.094 MB / 382.1 MB Notification: Performance of matching and sorting (n=49): time 0.002436/0.4243, allocations: 1.114 MB / 472.6 MB, free: 5.977 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.82e-05/0.4244, allocations: 59.41 kB / 472.7 MB, free: 5.906 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004088/0.4284, allocations: 2.975 MB / 475.7 MB, free: 2.922 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.597e-05/0.4285, allocations: 33.7 kB / 475.7 MB, free: 2.883 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001485/0.43, allocations: 1.506 MB / 477.2 MB, free: 1.367 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001777/0.4302, allocations: 178.6 kB / 477.4 MB, free: 1.191 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003164/0.4305, allocations: 226.4 kB / 477.6 MB, free: 0.9648 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001723/0.4307, allocations: 337.9 kB / 477.9 MB, free: 0.6289 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006205/0.4313, allocations: 241.9 kB / 478.2 MB, free: 404 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009951/0.4323, allocations: 0.6057 MB / 478.8 MB, free: 15.61 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001639/0.4339, allocations: 0.8974 MB / 479.7 MB, free: 14.54 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.095e-06/0.4339, allocations: 7.938 kB / 479.7 MB, free: 14.53 MB / 398.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002292/0.4362, allocations: 1.247 MB / 480.9 MB, free: 13.27 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.291e-05/0.4362, allocations: 8 kB / 480.9 MB, free: 13.27 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001251/0.4364, allocations: 80 kB / 481 MB, free: 13.19 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.353e-05/0.4364, allocations: 20 kB / 481 MB, free: 13.17 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007306/0.4371, allocations: 204.1 kB / 481.2 MB, free: 12.97 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.702e-05/0.4372, allocations: 27.92 kB / 481.3 MB, free: 12.94 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000955/0.4381, allocations: 115.3 kB / 481.4 MB, free: 12.83 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001068/0.4382, allocations: 60 kB / 481.4 MB, free: 12.77 MB / 398.1 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.0007288/0.439, allocations: 437.4 kB / 481.9 MB, free: 12.33 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004168/0.4394, allocations: 405.5 kB / 482.3 MB, free: 11.93 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002716/0.4421, allocations: 1.205 MB / 483.5 MB, free: 10.72 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.875e-06/0.4421, allocations: 7.938 kB / 483.5 MB, free: 10.71 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.309e-06/0.4421, allocations: 4 kB / 483.5 MB, free: 10.71 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.549e-06/0.4421, allocations: 0 / 483.5 MB, free: 10.71 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003523/0.4456, allocations: 2.018 MB / 485.5 MB, free: 8.625 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001055/0.4457, allocations: 71.98 kB / 485.6 MB, free: 8.555 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000489/0.4462, allocations: 95.92 kB / 485.7 MB, free: 8.461 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.913e-06/0.4462, allocations: 4 kB / 485.7 MB, free: 8.457 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.258e-05/0.4463, allocations: 35.98 kB / 485.7 MB, free: 8.422 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.156e-06/0.4463, allocations: 0 / 485.7 MB, free: 8.422 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.4463, allocations: 4 kB / 485.7 MB, free: 8.418 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002411/0.4487, allocations: 1.315 MB / 487 MB, free: 7.078 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008097/0.4495, allocations: 419.1 kB / 487.4 MB, free: 6.664 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000288/0.4498, allocations: 20.05 kB / 487.5 MB, free: 6.645 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006948/0.4505, allocations: 31.97 kB / 487.5 MB, free: 6.613 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001523/0.4506, allocations: 71.8 kB / 487.6 MB, free: 6.543 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.23e-05/0.4507, allocations: 36 kB / 487.6 MB, free: 6.508 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002702/0.4534, allocations: 1.916 MB / 489.5 MB, free: 4.594 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.4534, allocations: 0 / 489.5 MB, free: 4.594 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001323/0.4547, allocations: 0.593 MB / 490.1 MB, free: 4 MB / 398.1 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.003819/0.4586, allocations: 2.555 MB / 492.7 MB, free: 1.41 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001695/0.4603, allocations: 0.778 MB / 493.4 MB, free: 0.6055 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.4603, allocations: 0 / 493.4 MB, free: 0.6055 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007789/0.461, allocations: 427.9 kB / 493.8 MB, free: 168 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001841/0.4629, allocations: 0.5179 MB / 494.4 MB, free: 15.64 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0248/0.4877, allocations: 16.54 MB / 0.4989 GB, free: 14.57 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001191/0.4889, allocations: 1.118 MB / 0.5 GB, free: 13.43 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001109/0.49, allocations: 353.3 kB / 0.5004 GB, free: 13.07 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001423/0.4914, allocations: 1.23 MB / 0.5016 GB, free: 11.84 MB / 430.1 MB Notification: Performance of SimCode: time 1.513e-06/0.4914, allocations: 0 / 0.5016 GB, free: 11.84 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3116/0.803, allocations: 64.61 MB / 0.5647 GB, free: 149.3 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.89/16.69, allocations: 4.344 kB / 0.5647 GB, free: 149.3 MB / 478.1 MB " [Timeout remaining time 643] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/InvertersApartRecord/InvertersApartRecord.csv","/var/lib/jenkins1/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: 19.289948739111423]