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.001773/0.001773, allocations: 113.6 kB / 21.19 MB, free: 0.7031 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.002293/0.002293, allocations: 208.6 kB / 24.49 MB, free: 4.055 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.428/1.428, allocations: 207.6 MB / 235.3 MB, free: 10 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.001795/0.001795, allocations: 51.86 kB / 347.2 MB, free: 10.14 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2507/0.2525, allocations: 49.17 MB / 396.3 MB, free: 8.965 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01157/0.2641, allocations: 14.1 MB / 410.4 MB, free: 14.6 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02635/0.2904, allocations: 19.81 MB / 430.2 MB, free: 15.08 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003065/0.2935, allocations: 138.2 kB / 430.4 MB, free: 14.98 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004016/0.2975, allocations: 1.206 MB / 431.6 MB, free: 14.09 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008622/0.3062, allocations: 2.336 MB / 433.9 MB, free: 12.23 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004637/0.3108, allocations: 1.399 MB / 435.3 MB, free: 11.16 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01098/0.3218, allocations: 6.387 MB / 441.7 MB, free: 5.82 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007162/0.3225, allocations: 277.7 kB / 442 MB, free: 5.52 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001853/0.3243, allocations: 1.046 MB / 443 MB, free: 4.469 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001498/0.3258, allocations: 1.087 MB / 444.1 MB, free: 3.375 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002046/0.326, allocations: 76 kB / 444.2 MB, free: 3.301 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003967/0.33, allocations: 1.156 MB / 445.3 MB, free: 2.145 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004194/0.3304, allocations: 337.6 kB / 445.7 MB, free: 1.812 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001727/0.3322, allocations: 1.378 MB / 447.1 MB, free: 436 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006019/0.3382, allocations: 3.815 MB / 450.9 MB, free: 12.59 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.3382, allocations: 3.938 kB / 450.9 MB, free: 12.59 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.3382, allocations: 0 / 450.9 MB, free: 12.59 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.397e-05/0.3382, allocations: 0 / 450.9 MB, free: 12.59 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.005758/0.344, allocations: 3.757 MB / 454.6 MB, free: 8.77 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.889e-05/0.3441, allocations: 15.98 kB / 454.6 MB, free: 8.754 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00013/0.3442, allocations: 94.5 kB / 454.7 MB, free: 8.652 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004608/0.3446, allocations: 421.4 kB / 455.1 MB, free: 8.238 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003776/0.3484, allocations: 2.315 MB / 457.5 MB, free: 5.828 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.002e-05/0.3485, allocations: 40.94 kB / 457.5 MB, free: 5.789 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001268/0.3486, allocations: 51.95 kB / 457.6 MB, free: 5.738 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001392/0.35, allocations: 0.7343 MB / 458.3 MB, free: 5 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.709e-05/0.35, allocations: 0 / 458.3 MB, free: 5 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.819e-05/0.3501, allocations: 24 kB / 458.3 MB, free: 4.977 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.638e-05/0.3501, allocations: 19.98 kB / 458.3 MB, free: 4.957 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001614/0.3517, allocations: 0.8202 MB / 459.2 MB, free: 4.133 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005743/0.3574, allocations: 3.016 MB / 462.2 MB, free: 1.047 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001187/0.3586, allocations: 0.5241 MB / 462.7 MB, free: 0.5156 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009783/0.3596, allocations: 0.5654 MB / 463.3 MB, free: 15.93 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02633/0.3859, allocations: 13.79 MB / 477 MB, free: 1.766 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008036/0.3867, allocations: 369.6 kB / 477.4 MB, free: 1.387 MB / 382.1 MB Notification: Performance of pre-optimization done (n=49): time 3.326e-06/0.3867, allocations: 0 / 477.4 MB, free: 1.387 MB / 382.1 MB Notification: Performance of matching and sorting (n=49): time 0.002318/0.3891, allocations: 1.114 MB / 478.5 MB, free: 276 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.839e-05/0.3891, allocations: 59.41 kB / 478.6 MB, free: 204 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003813/0.3929, allocations: 2.952 MB / 481.5 MB, free: 13.23 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 9.032e-05/0.393, allocations: 37.64 kB / 481.6 MB, free: 13.19 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00137/0.3944, allocations: 1.502 MB / 483.1 MB, free: 11.68 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002086/0.3946, allocations: 182.6 kB / 483.2 MB, free: 11.5 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003098/0.3949, allocations: 230.3 kB / 483.5 MB, free: 11.27 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001472/0.3951, allocations: 337.9 kB / 483.8 MB, free: 10.94 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005982/0.3957, allocations: 241.9 kB / 484 MB, free: 10.7 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000845/0.3965, allocations: 0.6056 MB / 484.6 MB, free: 9.922 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001461/0.398, allocations: 0.8974 MB / 485.5 MB, free: 8.852 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.033e-05/0.398, allocations: 7.938 kB / 485.6 MB, free: 8.844 MB / 398.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002277/0.4003, allocations: 1.247 MB / 486.8 MB, free: 7.586 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.37e-05/0.4003, allocations: 12 kB / 486.8 MB, free: 7.574 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001326/0.4004, allocations: 83.98 kB / 486.9 MB, free: 7.492 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.855e-05/0.4004, allocations: 16 kB / 486.9 MB, free: 7.477 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007307/0.4012, allocations: 204.2 kB / 487.1 MB, free: 7.277 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.891e-05/0.4012, allocations: 31.86 kB / 487.1 MB, free: 7.246 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009207/0.4021, allocations: 115.3 kB / 487.3 MB, free: 7.133 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001033/0.4022, allocations: 60 kB / 487.3 MB, free: 7.074 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.0007323/0.403, allocations: 433.5 kB / 487.7 MB, free: 6.641 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000381/0.4033, allocations: 405.4 kB / 488.1 MB, free: 6.242 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002658/0.406, allocations: 1.198 MB / 489.3 MB, free: 5.035 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.719e-06/0.406, allocations: 7.984 kB / 489.3 MB, free: 5.027 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.449e-06/0.406, allocations: 4 kB / 489.3 MB, free: 5.023 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.949e-06/0.406, allocations: 3.938 kB / 489.3 MB, free: 5.02 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003482/0.4095, allocations: 2.069 MB / 491.4 MB, free: 2.887 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000104/0.4096, allocations: 71.98 kB / 491.5 MB, free: 2.816 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000483/0.4101, allocations: 95.86 kB / 491.6 MB, free: 2.723 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.498e-06/0.4101, allocations: 0 / 491.6 MB, free: 2.723 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.739e-05/0.4101, allocations: 31.98 kB / 491.6 MB, free: 2.691 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.568e-06/0.4102, allocations: 12.06 kB / 491.6 MB, free: 2.68 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.412e-06/0.4102, allocations: 0 / 491.6 MB, free: 2.68 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002337/0.4125, allocations: 1.323 MB / 492.9 MB, free: 1.332 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008432/0.4133, allocations: 423.1 kB / 493.4 MB, free: 0.9141 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002964/0.4136, allocations: 15.98 kB / 493.4 MB, free: 0.8984 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006604/0.4143, allocations: 32.03 kB / 493.4 MB, free: 0.8672 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001486/0.4144, allocations: 63.86 kB / 493.5 MB, free: 0.8047 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.192e-05/0.4145, allocations: 36 kB / 493.5 MB, free: 0.7695 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002569/0.4171, allocations: 1.92 MB / 495.4 MB, free: 14.85 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4171, allocations: 4 kB / 495.4 MB, free: 14.85 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001413/0.4185, allocations: 0.593 MB / 496 MB, free: 14.25 MB / 414.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.003786/0.4223, allocations: 2.558 MB / 498.6 MB, free: 11.66 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001698/0.424, allocations: 0.7748 MB / 499.3 MB, free: 10.86 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.424, allocations: 0 / 499.3 MB, free: 10.86 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007686/0.4247, allocations: 422.9 kB / 499.8 MB, free: 10.42 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001924/0.4267, allocations: 0.5104 MB / 0.4885 GB, free: 9.906 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02646/0.4531, allocations: 16.56 MB / 0.5047 GB, free: 8.816 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001236/0.4544, allocations: 1.669 MB / 0.5063 GB, free: 7.121 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001047/0.4554, allocations: 357.3 kB / 0.5067 GB, free: 6.766 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001363/0.4568, allocations: 1.226 MB / 0.5079 GB, free: 5.539 MB / 430.1 MB Notification: Performance of SimCode: time 1.914e-06/0.4568, allocations: 0 / 0.5079 GB, free: 5.539 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2881/0.7449, allocations: 62.03 MB / 0.5685 GB, free: 149.6 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.87/19.61, allocations: 5.75 kB / 0.5685 GB, free: 149.6 MB / 478.1 MB " [Timeout remaining time 640] (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: 22.201958642996033]