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.001135/0.001135, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 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.001214/0.001214, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.9/0.9, allocations: 177 MB / 204.1 MB, free: 5.75 MB / 186.7 MB " [Timeout remaining time 179] 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 1.764e-06/1.764e-06, allocations: 0 / 324.5 MB, free: 15.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.056e-05/2.232e-05, allocations: 6.281 kB / 324.5 MB, free: 15.9 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.009275/0.009297, allocations: 12.41 MB / 336.9 MB, free: 3.434 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01778/0.02707, allocations: 17.9 MB / 354.8 MB, free: 1.457 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002085/0.02916, allocations: 134.5 kB / 354.9 MB, free: 1.324 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002294/0.03145, allocations: 1.141 MB / 356.1 MB, free: 180 kB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005829/0.03728, allocations: 2.432 MB / 358.5 MB, free: 13.72 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003465/0.04075, allocations: 1.437 MB / 360 MB, free: 12.28 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.007005/0.04775, allocations: 6.773 MB / 366.7 MB, free: 5.484 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006034/0.04835, allocations: 265.8 kB / 367 MB, free: 5.199 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002025/0.05038, allocations: 1.578 MB / 368.6 MB, free: 3.617 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007809/0.05116, allocations: 0.7823 MB / 369.4 MB, free: 2.832 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001179/0.05128, allocations: 76 kB / 369.4 MB, free: 2.758 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003156/0.05444, allocations: 1.21 MB / 370.6 MB, free: 1.547 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002064/0.05464, allocations: 337.5 kB / 371 MB, free: 1.215 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009357/0.05558, allocations: 0.7398 MB / 371.7 MB, free: 484 kB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005507/0.06108, allocations: 3.76 MB / 375.5 MB, free: 12.7 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.631e-06/0.06109, allocations: 0 / 375.5 MB, free: 12.7 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.665e-06/0.06109, allocations: 0 / 375.5 MB, free: 12.7 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0001037/0.0612, allocations: 0 / 375.5 MB, free: 12.7 MB / 346.7 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.004845/0.06604, allocations: 3.683 MB / 379.1 MB, free: 8.957 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.185e-05/0.06609, allocations: 15.98 kB / 379.2 MB, free: 8.941 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.906e-05/0.06619, allocations: 98.5 kB / 379.3 MB, free: 8.836 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003668/0.06656, allocations: 421.3 kB / 379.7 MB, free: 8.422 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002484/0.06904, allocations: 2.291 MB / 382 MB, free: 6.031 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.18e-05/0.06908, allocations: 37 kB / 382 MB, free: 5.992 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001036/0.06918, allocations: 55.94 kB / 382.1 MB, free: 5.938 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009284/0.07011, allocations: 0.7343 MB / 382.8 MB, free: 5.195 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.401e-05/0.07012, allocations: 3.984 kB / 382.8 MB, free: 5.191 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.482e-05/0.07017, allocations: 20 kB / 382.8 MB, free: 5.172 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.944e-05/0.07019, allocations: 23.98 kB / 382.8 MB, free: 5.148 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00101/0.0712, allocations: 0.8163 MB / 383.7 MB, free: 4.336 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003969/0.07516, allocations: 2.848 MB / 386.5 MB, free: 1.414 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007022/0.07587, allocations: 0.513 MB / 387 MB, free: 0.8945 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005619/0.07643, allocations: 0.5728 MB / 387.6 MB, free: 328 kB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01626/0.09269, allocations: 13.72 MB / 401.3 MB, free: 2.223 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005337/0.09322, allocations: 374 kB / 401.7 MB, free: 1.84 MB / 362.7 MB Notification: Performance of pre-optimization done (n=49): time 2.575e-06/0.09322, allocations: 0 / 401.7 MB, free: 1.84 MB / 362.7 MB Notification: Performance of matching and sorting (n=49): time 0.001793/0.09502, allocations: 1.108 MB / 402.8 MB, free: 0.7266 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.671e-05/0.09508, allocations: 63.39 kB / 402.8 MB, free: 0.6523 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00296/0.09804, allocations: 2.954 MB / 405.8 MB, free: 13.69 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.729e-05/0.0981, allocations: 29.7 kB / 405.8 MB, free: 13.65 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009082/0.09901, allocations: 1.495 MB / 407.3 MB, free: 12.15 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001325/0.09914, allocations: 174.5 kB / 407.5 MB, free: 11.98 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003981/0.09954, allocations: 234.3 kB / 407.7 MB, free: 11.74 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.358e-05/0.09963, allocations: 337.9 kB / 408 MB, free: 11.41 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000327/0.09996, allocations: 245.8 kB / 408.3 MB, free: 11.16 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004661/0.1004, allocations: 0.5901 MB / 408.9 MB, free: 10.4 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008763/0.1013, allocations: 0.9023 MB / 409.8 MB, free: 9.32 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.282e-06/0.1013, allocations: 8 kB / 409.8 MB, free: 9.312 MB / 378.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001764/0.1031, allocations: 1.24 MB / 411 MB, free: 8.07 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.699e-05/0.1031, allocations: 15.5 kB / 411 MB, free: 8.059 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.86e-05/0.1032, allocations: 87.98 kB / 411.1 MB, free: 7.973 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.743e-05/0.1032, allocations: 16 kB / 411.1 MB, free: 7.957 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000399/0.1036, allocations: 203.6 kB / 411.3 MB, free: 7.758 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.895e-05/0.1036, allocations: 27.92 kB / 411.4 MB, free: 7.73 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005954/0.1042, allocations: 103.3 kB / 411.5 MB, free: 7.629 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.944e-05/0.1043, allocations: 72 kB / 411.5 MB, free: 7.559 MB / 378.7 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.0005908/0.1049, allocations: 433.5 kB / 412 MB, free: 7.125 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002501/0.1051, allocations: 405.4 kB / 412.4 MB, free: 6.727 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001542/0.1067, allocations: 1.191 MB / 413.6 MB, free: 5.523 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.184e-06/0.1067, allocations: 8 kB / 413.6 MB, free: 5.516 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.086e-06/0.1067, allocations: 7.984 kB / 413.6 MB, free: 5.508 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.598e-06/0.1067, allocations: 3.938 kB / 413.6 MB, free: 5.504 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002494/0.1092, allocations: 2.015 MB / 415.6 MB, free: 3.422 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.084e-05/0.1092, allocations: 68 kB / 415.7 MB, free: 3.355 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002492/0.1095, allocations: 95.84 kB / 415.7 MB, free: 3.262 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.349e-06/0.1095, allocations: 0 / 415.7 MB, free: 3.262 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.126e-05/0.1095, allocations: 36 kB / 415.8 MB, free: 3.227 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.616e-06/0.1095, allocations: 0 / 415.8 MB, free: 3.227 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.1095, allocations: 4.062 kB / 415.8 MB, free: 3.223 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001417/0.111, allocations: 1.316 MB / 417.1 MB, free: 1.879 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005649/0.1115, allocations: 415.2 kB / 417.5 MB, free: 1.473 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001513/0.1117, allocations: 12 kB / 417.5 MB, free: 1.461 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003366/0.112, allocations: 31.95 kB / 417.5 MB, free: 1.43 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001061/0.1121, allocations: 63.88 kB / 417.6 MB, free: 1.367 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.858e-05/0.1122, allocations: 39.98 kB / 417.6 MB, free: 1.328 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001821/0.114, allocations: 1.903 MB / 419.6 MB, free: 15.43 MB / 394.7 MB Notification: Performance of sort global known variables: time 7e-08/0.114, allocations: 0 / 419.6 MB, free: 15.43 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001003/0.115, allocations: 0.5891 MB / 420.1 MB, free: 14.84 MB / 394.7 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.002703/0.1177, allocations: 2.595 MB / 422.7 MB, free: 12.21 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001076/0.1188, allocations: 0.7833 MB / 423.5 MB, free: 11.4 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/0.1188, allocations: 0 / 423.5 MB, free: 11.4 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004423/0.1192, allocations: 427.2 kB / 423.9 MB, free: 10.96 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001649/0.1209, allocations: 0.6036 MB / 424.5 MB, free: 10.35 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01865/0.1395, allocations: 16.37 MB / 440.9 MB, free: 9.449 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008028/0.1403, allocations: 1.113 MB / 442 MB, free: 8.305 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0008274/0.1411, allocations: 357.1 kB / 442.4 MB, free: 7.949 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001067/0.1422, allocations: 1.215 MB / 443.6 MB, free: 6.734 MB / 410.7 MB Notification: Performance of SimCode: time 1.653e-06/0.1422, allocations: 4 kB / 443.6 MB, free: 6.73 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2282/0.3704, allocations: 64.24 MB / 0.4959 GB, free: 66.28 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.361/9.731, allocations: 5.906 kB / 0.4959 GB, free: 66.28 MB / 410.7 MB " [Timeout remaining time 650] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/InvertersApartRecord/InvertersApartRecord.csv","/var/lib/jenkins/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: 11.579049474559724]