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.001782/0.001782, allocations: 117.9 kB / 18.45 MB, free: 4.609 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.002114/0.002114, allocations: 215.3 kB / 21.41 MB, free: 1.648 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.493/1.493, allocations: 207.6 MB / 231.8 MB, free: 4.07 MB / 174.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.001752/0.001752, allocations: 56.55 kB / 342.3 MB, free: 9.996 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1008/0.1026, allocations: 49.13 MB / 391.4 MB, free: 8.703 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01496/0.1175, allocations: 14.07 MB / 405.5 MB, free: 10.57 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02713/0.1446, allocations: 19.79 MB / 425.3 MB, free: 6.699 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003994/0.1486, allocations: 142.4 kB / 425.4 MB, free: 6.559 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004106/0.1527, allocations: 1.209 MB / 426.6 MB, free: 5.344 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009672/0.1624, allocations: 2.281 MB / 428.9 MB, free: 3.047 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007328/0.1697, allocations: 1.4 MB / 430.3 MB, free: 1.637 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01255/0.1823, allocations: 6.368 MB / 436.7 MB, free: 11.25 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007294/0.183, allocations: 265.2 kB / 436.9 MB, free: 10.96 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001836/0.1849, allocations: 1.05 MB / 438 MB, free: 9.906 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001806/0.1867, allocations: 1.079 MB / 439.1 MB, free: 8.82 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002095/0.1869, allocations: 79.98 kB / 439.1 MB, free: 8.742 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004064/0.1909, allocations: 1.163 MB / 440.3 MB, free: 7.578 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004124/0.1914, allocations: 329.5 kB / 440.6 MB, free: 7.254 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001959/0.1933, allocations: 1.378 MB / 442 MB, free: 5.867 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008193/0.2015, allocations: 3.819 MB / 445.8 MB, free: 2.031 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.234e-06/0.2015, allocations: 0 / 445.8 MB, free: 2.031 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.2015, allocations: 0 / 445.8 MB, free: 2.031 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000121/0.2016, allocations: 0 / 445.8 MB, free: 2.031 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: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.008403/0.21, allocations: 3.829 MB / 449.6 MB, free: 14.12 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.868e-05/0.2101, allocations: 12.03 kB / 449.7 MB, free: 14.11 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001603/0.2103, allocations: 102.5 kB / 449.8 MB, free: 14 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006958/0.211, allocations: 417.4 kB / 450.2 MB, free: 13.59 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004458/0.2154, allocations: 2.465 MB / 452.6 MB, free: 11.06 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.443e-05/0.2155, allocations: 40.98 kB / 452.7 MB, free: 11.02 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001467/0.2156, allocations: 55.89 kB / 452.7 MB, free: 10.96 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0017/0.2173, allocations: 0.7304 MB / 453.5 MB, free: 10.23 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.801e-05/0.2173, allocations: 4 kB / 453.5 MB, free: 10.22 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.704e-05/0.2174, allocations: 19.98 kB / 453.5 MB, free: 10.2 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.106e-05/0.2174, allocations: 16 kB / 453.5 MB, free: 10.19 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001779/0.2192, allocations: 0.8202 MB / 454.3 MB, free: 9.367 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006808/0.226, allocations: 3.083 MB / 457.4 MB, free: 6.191 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001397/0.2274, allocations: 0.5088 MB / 457.9 MB, free: 5.672 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001072/0.2285, allocations: 0.5627 MB / 458.5 MB, free: 5.109 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2362/0.4647, allocations: 30.18 MB / 488.7 MB, free: 44.89 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007052/0.4654, allocations: 366 kB / 489 MB, free: 44.68 MB / 382.1 MB Notification: Performance of pre-optimization done (n=49): time 3.827e-06/0.4654, allocations: 0 / 489 MB, free: 44.68 MB / 382.1 MB Notification: Performance of matching and sorting (n=49): time 0.002308/0.4677, allocations: 1.117 MB / 490.1 MB, free: 44.37 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.496e-05/0.4677, allocations: 63.22 kB / 490.2 MB, free: 44.3 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003277/0.471, allocations: 2.957 MB / 493.1 MB, free: 42.77 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.788e-05/0.4711, allocations: 37.64 kB / 493.2 MB, free: 42.73 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008559/0.4719, allocations: 1.503 MB / 494.7 MB, free: 41.43 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001464/0.4721, allocations: 176.5 kB / 494.9 MB, free: 41.3 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002545/0.4723, allocations: 228.5 kB / 495.1 MB, free: 41.18 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.327e-05/0.4724, allocations: 337.8 kB / 495.4 MB, free: 40.86 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005366/0.4729, allocations: 243.6 kB / 495.6 MB, free: 40.76 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006496/0.4736, allocations: 0.6018 MB / 496.2 MB, free: 40.17 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001191/0.4748, allocations: 0.8961 MB / 497.1 MB, free: 39.46 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.575e-06/0.4748, allocations: 3.938 kB / 497.1 MB, free: 39.46 MB / 382.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002208/0.477, allocations: 1.246 MB / 498.4 MB, free: 38.88 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.392e-05/0.477, allocations: 11.5 kB / 498.4 MB, free: 38.88 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.363e-05/0.4771, allocations: 79.94 kB / 498.5 MB, free: 38.87 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.382e-05/0.4771, allocations: 23.12 kB / 498.5 MB, free: 38.87 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006762/0.4778, allocations: 205.3 kB / 498.7 MB, free: 38.81 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.152e-05/0.4778, allocations: 26.11 kB / 498.7 MB, free: 38.8 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009167/0.4788, allocations: 115.7 kB / 498.8 MB, free: 38.75 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.319e-05/0.4789, allocations: 67.75 kB / 498.9 MB, free: 38.74 MB / 382.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.0006606/0.4795, allocations: 435 kB / 499.3 MB, free: 38.45 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003552/0.4799, allocations: 405 kB / 499.7 MB, free: 38.23 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002386/0.4823, allocations: 1.205 MB / 0.4892 GB, free: 37.09 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.833e-06/0.4823, allocations: 4 kB / 0.4892 GB, free: 37.09 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/0.4823, allocations: 0 / 0.4892 GB, free: 37.09 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.29e-06/0.4823, allocations: 4 kB / 0.4892 GB, free: 37.09 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00294/0.4852, allocations: 2.106 MB / 0.4913 GB, free: 34.93 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.717e-05/0.4853, allocations: 68 kB / 0.4913 GB, free: 34.86 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004752/0.4858, allocations: 87.86 kB / 0.4914 GB, free: 34.78 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.912e-06/0.4858, allocations: 7.469 kB / 0.4914 GB, free: 34.77 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.73e-05/0.4858, allocations: 35.98 kB / 0.4915 GB, free: 34.74 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.669e-06/0.4858, allocations: 4 kB / 0.4915 GB, free: 34.73 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.4858, allocations: 4.938 kB / 0.4915 GB, free: 34.73 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002143/0.488, allocations: 1.325 MB / 0.4928 GB, free: 33.38 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008315/0.4888, allocations: 0.4886 MB / 0.4932 GB, free: 32.88 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002671/0.4891, allocations: 8 kB / 0.4932 GB, free: 32.87 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006238/0.4897, allocations: 35.95 kB / 0.4933 GB, free: 32.83 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001586/0.4898, allocations: 60.02 kB / 0.4933 GB, free: 32.77 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.158e-05/0.4899, allocations: 39.98 kB / 0.4934 GB, free: 32.73 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002338/0.4923, allocations: 1.92 MB / 0.4952 GB, free: 30.82 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4923, allocations: 0 / 0.4952 GB, free: 30.82 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001494/0.4938, allocations: 0.5877 MB / 0.4958 GB, free: 30.27 MB / 382.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.00322/0.497, allocations: 2.566 MB / 0.4983 GB, free: 27.77 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001476/0.4984, allocations: 0.7712 MB / 0.4991 GB, free: 26.97 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.608e-06/0.4985, allocations: 4.062 kB / 0.4991 GB, free: 26.97 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006463/0.4991, allocations: 431.2 kB / 0.4995 GB, free: 26.52 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001985/0.5011, allocations: 0.5111 MB / 0.5 GB, free: 26.02 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02137/0.5225, allocations: 16.55 MB / 0.5162 GB, free: 8.996 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007651/0.5232, allocations: 1.665 MB / 0.5178 GB, free: 7.305 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0009845/0.5242, allocations: 366.9 kB / 0.5181 GB, free: 6.953 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008739/0.5251, allocations: 1.222 MB / 0.5193 GB, free: 5.73 MB / 382.1 MB Notification: Performance of SimCode: time 1.443e-06/0.5251, allocations: 0 / 0.5193 GB, free: 5.73 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1272/0.6523, allocations: 61.42 MB / 0.5793 GB, free: 8.172 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.15/16.8, allocations: 15.98 kB / 0.5793 GB, free: 8.156 MB / 446.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.52000887399481]