Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001297/0.001297, allocations: 123 kB / 17.79 MB, free: 5.359 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001274/0.001274, allocations: 193.2 kB / 20.73 MB, free: 2.422 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.474/1.474, allocations: 225.6 MB / 249.1 MB, free: 3.613 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001538/0.001538, allocations: 47.92 kB / 365.6 MB, free: 0.8477 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.105/0.1065, allocations: 52.15 MB / 417.8 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01582/0.1223, allocations: 14.75 MB / 432.5 MB, free: 13.79 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.2512/0.3735, allocations: 20.73 MB / 453.3 MB, free: 6.867 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002226/0.3757, allocations: 136.9 kB / 453.4 MB, free: 6.867 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003588/0.3793, allocations: 1.241 MB / 454.6 MB, free: 6.801 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008941/0.3883, allocations: 2.319 MB / 456.9 MB, free: 6.152 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005902/0.3942, allocations: 1.447 MB / 458.4 MB, free: 5.781 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01162/0.4058, allocations: 6.507 MB / 464.9 MB, free: 4.715 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008116/0.4066, allocations: 267.3 kB / 465.2 MB, free: 4.609 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002243/0.4088, allocations: 1.149 MB / 466.3 MB, free: 4.301 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001468/0.4103, allocations: 1.112 MB / 467.4 MB, free: 3.859 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001882/0.4105, allocations: 74.19 kB / 467.5 MB, free: 3.859 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004545/0.415, allocations: 1.476 MB / 469 MB, free: 3.793 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003539/0.4154, allocations: 328.1 kB / 469.3 MB, free: 3.652 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001519/0.4169, allocations: 1.374 MB / 470.7 MB, free: 2.801 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006296/0.4232, allocations: 3.788 MB / 474.5 MB, free: 1.445 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.4232, allocations: 0 / 474.5 MB, free: 1.445 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.4232, allocations: 0 / 474.5 MB, free: 1.445 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.354e-05/0.4233, allocations: 0.8438 kB / 474.5 MB, free: 1.445 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.005915/0.4292, allocations: 3.807 MB / 478.3 MB, free: 14.91 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.407e-05/0.4292, allocations: 9.406 kB / 478.3 MB, free: 14.91 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001345/0.4294, allocations: 99.92 kB / 478.4 MB, free: 14.84 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005572/0.4299, allocations: 414.9 kB / 478.8 MB, free: 14.62 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003604/0.4335, allocations: 2.448 MB / 481.2 MB, free: 12.94 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.728e-05/0.4336, allocations: 37.2 kB / 481.3 MB, free: 12.92 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001443/0.4337, allocations: 54.64 kB / 481.3 MB, free: 12.9 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001432/0.4352, allocations: 0.735 MB / 482 MB, free: 12.47 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.518e-05/0.4352, allocations: 0 / 482 MB, free: 12.47 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000116/0.4353, allocations: 24.56 kB / 482.1 MB, free: 12.45 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.537e-05/0.4353, allocations: 21.23 kB / 482.1 MB, free: 12.44 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00157/0.4369, allocations: 0.8154 MB / 482.9 MB, free: 12.12 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005511/0.4424, allocations: 3.056 MB / 486 MB, free: 10.05 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001192/0.4436, allocations: 0.517 MB / 486.5 MB, free: 9.781 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000951/0.4445, allocations: 0.5636 MB / 487 MB, free: 9.48 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03195/0.4765, allocations: 30.12 MB / 0.505 GB, free: 8.762 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007919/0.4773, allocations: 357.7 kB / 0.5054 GB, free: 8.402 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 2.545e-06/0.4773, allocations: 0 / 0.5054 GB, free: 8.402 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.002571/0.4799, allocations: 1.118 MB / 0.5065 GB, free: 7.273 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.716e-05/0.4799, allocations: 57.91 kB / 0.5065 GB, free: 7.207 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003728/0.4836, allocations: 2.939 MB / 0.5094 GB, free: 4.258 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 6.89e-05/0.4837, allocations: 33.7 kB / 0.5094 GB, free: 4.219 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001387/0.4851, allocations: 1.497 MB / 0.5109 GB, free: 2.715 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001808/0.4853, allocations: 171.4 kB / 0.5111 GB, free: 2.551 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003318/0.4856, allocations: 230.3 kB / 0.5113 GB, free: 2.32 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001584/0.4858, allocations: 345.9 kB / 0.5116 GB, free: 1.977 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006092/0.4864, allocations: 241.9 kB / 0.5118 GB, free: 1.742 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009072/0.4873, allocations: 0.607 MB / 0.5124 GB, free: 0.9609 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00154/0.4888, allocations: 0.888 MB / 0.5133 GB, free: 15.91 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.494e-06/0.4888, allocations: 4 kB / 0.5133 GB, free: 15.9 MB / 430.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002368/0.4912, allocations: 1.244 MB / 0.5145 GB, free: 14.66 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.362e-05/0.4912, allocations: 11.98 kB / 0.5145 GB, free: 14.64 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001211/0.4913, allocations: 88.06 kB / 0.5146 GB, free: 14.56 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.323e-05/0.4914, allocations: 20 kB / 0.5146 GB, free: 14.54 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007369/0.4921, allocations: 201.5 kB / 0.5148 GB, free: 14.34 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.487e-05/0.4921, allocations: 27.86 kB / 0.5149 GB, free: 14.32 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001179/0.4933, allocations: 111.3 kB / 0.515 GB, free: 14.21 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000113/0.4934, allocations: 67.06 kB / 0.515 GB, free: 14.14 MB / 430.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.0006685/0.4941, allocations: 434.1 kB / 0.5154 GB, free: 13.71 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004146/0.4945, allocations: 397.5 kB / 0.5158 GB, free: 13.32 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002735/0.4972, allocations: 1.199 MB / 0.517 GB, free: 12.12 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.827e-06/0.4972, allocations: 8 kB / 0.517 GB, free: 12.12 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.632e-06/0.4973, allocations: 3.984 kB / 0.517 GB, free: 12.11 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.919e-06/0.4973, allocations: 0 / 0.517 GB, free: 12.11 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003496/0.5008, allocations: 2.105 MB / 0.5191 GB, free: 9.945 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.723e-05/0.5008, allocations: 68 kB / 0.5191 GB, free: 9.879 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004843/0.5013, allocations: 95.84 kB / 0.5192 GB, free: 9.785 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.062e-06/0.5013, allocations: 4 kB / 0.5192 GB, free: 9.781 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.051e-05/0.5014, allocations: 36.06 kB / 0.5193 GB, free: 9.746 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.785e-06/0.5014, allocations: 0 / 0.5193 GB, free: 9.746 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.426e-06/0.5014, allocations: 4 kB / 0.5193 GB, free: 9.742 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002361/0.5038, allocations: 1.309 MB / 0.5205 GB, free: 8.41 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008335/0.5046, allocations: 494.4 kB / 0.521 GB, free: 7.906 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002692/0.5049, allocations: 15.98 kB / 0.521 GB, free: 7.891 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006536/0.5055, allocations: 32.03 kB / 0.5211 GB, free: 7.859 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001601/0.5057, allocations: 63.88 kB / 0.5211 GB, free: 7.797 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.42e-05/0.5058, allocations: 36 kB / 0.5211 GB, free: 7.762 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002488/0.5082, allocations: 1.915 MB / 0.523 GB, free: 5.848 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.5082, allocations: 0 / 0.523 GB, free: 5.848 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001505/0.5098, allocations: 0.5813 MB / 0.5236 GB, free: 5.266 MB / 430.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.003855/0.5136, allocations: 2.553 MB / 0.5261 GB, free: 2.832 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001727/0.5153, allocations: 0.7826 MB / 0.5268 GB, free: 2.023 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.5153, allocations: 0 / 0.5268 GB, free: 2.023 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000801/0.5161, allocations: 419 kB / 0.5272 GB, free: 1.59 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002872/0.519, allocations: 0.6145 MB / 0.5278 GB, free: 0.9766 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02519/0.5442, allocations: 16.44 MB / 0.5439 GB, free: 16 kB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001288/0.5455, allocations: 1.665 MB / 0.5455 GB, free: 14.32 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001057/0.5465, allocations: 357.1 kB / 0.5459 GB, free: 13.96 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001321/0.5479, allocations: 1.215 MB / 0.5471 GB, free: 12.75 MB / 462.1 MB Notification: Performance of SimCode: time 9.02e-07/0.5479, allocations: 0 / 0.5471 GB, free: 12.75 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1424/0.6903, allocations: 61.03 MB / 0.6066 GB, free: 100 kB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.78/16.47, allocations: 20.09 kB / 0.6067 GB, free: 84 kB / 0.4981 GB " [Timeout remaining time 643] (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Electrical_Spice3_Examples_InvertersApartRecord.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/InvertersApartRecord/InvertersApartRecord.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.csv. Warning: Get data of variable mp1.S.v from file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.csv failed! Error: Could not read variable mp2.S.v in file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.csv. Warning: Get data of variable mp2.S.v from file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.csv failed! Error: Could not read variable v.p.v in file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.csv. Warning: Get data of variable v.p.v from file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 19.122490257956088]