Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001952/0.001952, allocations: 119.1 kB / 20.45 MB, free: 1.176 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002585/0.002585, allocations: 206.4 kB / 23.72 MB, free: 4.391 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.517/1.517, allocations: 230.5 MB / 257.4 MB, free: 7.734 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002133/0.002133, allocations: 63.89 kB / 377.7 MB, free: 2.785 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2115/0.2136, allocations: 53.41 MB / 431.1 MB, free: 6.43 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01409/0.2277, allocations: 12.39 MB / 443.5 MB, free: 9.988 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02323/0.251, allocations: 17.9 MB / 461.4 MB, free: 8.023 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001667/0.2526, allocations: 134.6 kB / 461.6 MB, free: 7.891 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002837/0.2555, allocations: 1.131 MB / 462.7 MB, free: 6.754 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006571/0.262, allocations: 2.359 MB / 465 MB, free: 4.375 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003964/0.266, allocations: 1.414 MB / 466.5 MB, free: 2.961 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.009934/0.2759, allocations: 6.607 MB / 473.1 MB, free: 12.33 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005986/0.2765, allocations: 269.7 kB / 473.3 MB, free: 12.04 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001637/0.2782, allocations: 1.151 MB / 474.5 MB, free: 10.88 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001308/0.2795, allocations: 1.071 MB / 475.6 MB, free: 9.805 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002042/0.2797, allocations: 76 kB / 475.6 MB, free: 9.73 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003144/0.2828, allocations: 1.198 MB / 476.8 MB, free: 8.531 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003198/0.2831, allocations: 325.6 kB / 477.1 MB, free: 8.211 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001071/0.2842, allocations: 1.009 MB / 478.1 MB, free: 7.195 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004628/0.2888, allocations: 3.834 MB / 482 MB, free: 3.344 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.2888, allocations: 4 kB / 482 MB, free: 3.34 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.2888, allocations: 3.938 kB / 482 MB, free: 3.336 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.319e-05/0.2889, allocations: 0 / 482 MB, free: 3.336 MB / 382.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.005675/0.2946, allocations: 3.726 MB / 485.7 MB, free: 15.55 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.305e-05/0.2946, allocations: 15.98 kB / 485.7 MB, free: 15.53 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001259/0.2947, allocations: 94.5 kB / 485.8 MB, free: 15.43 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004651/0.2952, allocations: 417.4 kB / 486.2 MB, free: 15.02 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003781/0.299, allocations: 2.295 MB / 488.5 MB, free: 12.63 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.814e-05/0.299, allocations: 37 kB / 488.6 MB, free: 12.59 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000137/0.2992, allocations: 52 kB / 488.6 MB, free: 12.54 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001422/0.3006, allocations: 0.7343 MB / 489.4 MB, free: 11.8 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.578e-05/0.3006, allocations: 3.938 kB / 489.4 MB, free: 11.8 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.655e-05/0.3007, allocations: 19.98 kB / 489.4 MB, free: 11.78 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.542e-05/0.3007, allocations: 24 kB / 489.4 MB, free: 11.76 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001672/0.3024, allocations: 0.8202 MB / 490.2 MB, free: 10.94 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005314/0.3077, allocations: 2.844 MB / 493.1 MB, free: 8.023 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001192/0.3089, allocations: 0.5125 MB / 493.6 MB, free: 7.504 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001014/0.3099, allocations: 0.5692 MB / 494.1 MB, free: 6.926 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02734/0.3372, allocations: 13.73 MB / 0.496 GB, free: 8.809 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000791/0.338, allocations: 365.7 kB / 0.4963 GB, free: 8.438 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 3.347e-06/0.338, allocations: 0 / 0.4963 GB, free: 8.438 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.00255/0.3406, allocations: 1.103 MB / 0.4974 GB, free: 7.332 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.805e-05/0.3406, allocations: 63.33 kB / 0.4975 GB, free: 7.258 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003868/0.3445, allocations: 2.95 MB / 0.5003 GB, free: 4.297 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 6.414e-05/0.3446, allocations: 37.7 kB / 0.5004 GB, free: 4.254 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001437/0.346, allocations: 1.502 MB / 0.5018 GB, free: 2.742 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001725/0.3462, allocations: 170.6 kB / 0.502 GB, free: 2.574 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003082/0.3465, allocations: 234.3 kB / 0.5022 GB, free: 2.34 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001613/0.3466, allocations: 338 kB / 0.5026 GB, free: 2.004 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006278/0.3473, allocations: 249.8 kB / 0.5028 GB, free: 1.758 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009889/0.3482, allocations: 0.5901 MB / 0.5034 GB, free: 0.9922 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001634/0.3499, allocations: 0.9052 MB / 0.5042 GB, free: 15.91 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.496e-06/0.3499, allocations: 7.828 kB / 0.5043 GB, free: 15.9 MB / 430.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002205/0.3521, allocations: 1.239 MB / 0.5055 GB, free: 14.66 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.601e-05/0.3521, allocations: 12 kB / 0.5055 GB, free: 14.64 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000121/0.3522, allocations: 80.91 kB / 0.5056 GB, free: 14.57 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.744e-05/0.3523, allocations: 16 kB / 0.5056 GB, free: 14.55 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000755/0.353, allocations: 207.6 kB / 0.5058 GB, free: 14.35 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.2e-05/0.3531, allocations: 23.92 kB / 0.5058 GB, free: 14.32 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001077/0.3541, allocations: 107.3 kB / 0.5059 GB, free: 14.22 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001103/0.3543, allocations: 68 kB / 0.506 GB, free: 14.15 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.0007272/0.355, allocations: 441.3 kB / 0.5064 GB, free: 13.71 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004059/0.3554, allocations: 401.5 kB / 0.5068 GB, free: 13.32 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002892/0.3583, allocations: 1.19 MB / 0.5079 GB, free: 12.12 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.666e-06/0.3583, allocations: 4 kB / 0.5079 GB, free: 12.12 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.3583, allocations: 3.938 kB / 0.5079 GB, free: 12.12 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.543e-06/0.3583, allocations: 4 kB / 0.5079 GB, free: 12.11 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003842/0.3621, allocations: 2.021 MB / 0.5099 GB, free: 10.03 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001165/0.3623, allocations: 76.05 kB / 0.51 GB, free: 9.953 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004967/0.3628, allocations: 87.92 kB / 0.5101 GB, free: 9.867 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.38e-06/0.3628, allocations: 0 / 0.5101 GB, free: 9.867 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.722e-05/0.3628, allocations: 35.94 kB / 0.5101 GB, free: 9.832 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.626e-06/0.3628, allocations: 0 / 0.5101 GB, free: 9.832 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/0.3628, allocations: 0 / 0.5101 GB, free: 9.832 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002527/0.3654, allocations: 1.318 MB / 0.5114 GB, free: 8.488 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009962/0.3664, allocations: 415.2 kB / 0.5118 GB, free: 8.082 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002939/0.3667, allocations: 16.06 kB / 0.5118 GB, free: 8.066 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006854/0.3673, allocations: 31.95 kB / 0.5118 GB, free: 8.035 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000152/0.3675, allocations: 63.88 kB / 0.5119 GB, free: 7.973 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.473e-05/0.3676, allocations: 43.92 kB / 0.5119 GB, free: 7.93 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002909/0.3705, allocations: 1.907 MB / 0.5138 GB, free: 6.023 MB / 430.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3705, allocations: 0 / 0.5138 GB, free: 6.023 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001516/0.372, allocations: 0.5852 MB / 0.5144 GB, free: 5.438 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.003851/0.3758, allocations: 2.546 MB / 0.5169 GB, free: 2.855 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0017/0.3775, allocations: 0.786 MB / 0.5176 GB, free: 2.043 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.3775, allocations: 0 / 0.5176 GB, free: 2.043 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007932/0.3783, allocations: 428 kB / 0.518 GB, free: 1.602 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002581/0.3809, allocations: 0.6036 MB / 0.5186 GB, free: 0.9922 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02562/0.4065, allocations: 16.44 MB / 0.5347 GB, free: 12 kB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.175/0.5815, allocations: 1.108 MB / 0.5358 GB, free: 106.9 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001103/0.5826, allocations: 360.8 kB / 0.5361 GB, free: 106.8 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00102/0.5837, allocations: 1.214 MB / 0.5373 GB, free: 106.3 MB / 446.1 MB Notification: Performance of SimCode: time 9.32e-07/0.5837, allocations: 0 / 0.5373 GB, free: 106.3 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09548/0.6792, allocations: 64.23 MB / 0.6 GB, free: 48.38 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.3/15.98, allocations: 7.016 kB / 0.6 GB, free: 48.38 MB / 446.1 MB " [Timeout remaining time 644] (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Electrical_Spice3_Examples_InvertersApartRecord.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/InvertersApartRecord/InvertersApartRecord.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.csv. Warning: Get data of variable mp1.S.v from file Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.csv failed! Error: Could not read variable mp2.S.v in file Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.csv. Warning: Get data of variable mp2.S.v from file Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.csv failed! Error: Could not read variable v.p.v in file Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.csv. Warning: Get data of variable v.p.v from file Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 18.63895637402311]