Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.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.0008443/0.0008443, 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.0008003/0.0008003, 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.8998/0.8998, allocations: 177 MB / 204.1 MB, free: 5.754 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.InvertersExtendedModel,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.573e-06/1.573e-06, allocations: 0 / 324.5 MB, free: 15.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.088e-05/2.245e-05, allocations: 7.266 kB / 324.5 MB, free: 15.9 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.009404/0.009426, allocations: 12.92 MB / 337.4 MB, free: 2.93 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01893/0.02835, allocations: 17.97 MB / 355.4 MB, free: 0.8828 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003453/0.03181, allocations: 138.5 kB / 355.5 MB, free: 0.7461 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003679/0.03549, allocations: 1.168 MB / 356.7 MB, free: 15.57 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007546/0.04303, allocations: 2.479 MB / 359.2 MB, free: 13.07 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004182/0.04721, allocations: 1.441 MB / 360.6 MB, free: 11.62 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.008136/0.05535, allocations: 6.905 MB / 367.5 MB, free: 4.695 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008142/0.05616, allocations: 270.2 kB / 367.8 MB, free: 4.406 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001851/0.05801, allocations: 1.613 MB / 369.4 MB, free: 2.789 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009437/0.05896, allocations: 0.8095 MB / 370.2 MB, free: 1.977 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001854/0.05914, allocations: 76 kB / 370.3 MB, free: 1.902 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003205/0.06235, allocations: 1.217 MB / 371.5 MB, free: 0.6836 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000255/0.0626, allocations: 337.4 kB / 371.8 MB, free: 360 kB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001171/0.06377, allocations: 0.7631 MB / 372.6 MB, free: 15.59 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004409/0.06818, allocations: 3.962 MB / 376.6 MB, free: 11.61 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.721e-06/0.06819, allocations: 0 / 376.6 MB, free: 11.61 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.733e-06/0.06819, allocations: 0 / 376.6 MB, free: 11.61 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0001385/0.06833, allocations: 0 / 376.6 MB, free: 11.61 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.004931/0.07326, allocations: 3.839 MB / 380.4 MB, free: 7.711 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.034e-05/0.07331, allocations: 15.98 kB / 380.4 MB, free: 7.695 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001004/0.07341, allocations: 94.5 kB / 380.5 MB, free: 7.594 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004537/0.07386, allocations: 437.3 kB / 380.9 MB, free: 7.164 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002622/0.07649, allocations: 2.349 MB / 383.3 MB, free: 4.719 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.133e-05/0.07652, allocations: 37 kB / 383.3 MB, free: 4.68 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.98e-05/0.07661, allocations: 55.89 kB / 383.4 MB, free: 4.625 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000949/0.07756, allocations: 0.7343 MB / 384.1 MB, free: 3.883 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.241e-05/0.07757, allocations: 0 / 384.1 MB, free: 3.883 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.624e-05/0.07762, allocations: 19.98 kB / 384.1 MB, free: 3.863 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.838e-05/0.07763, allocations: 20 kB / 384.1 MB, free: 3.844 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001026/0.07866, allocations: 0.8163 MB / 385 MB, free: 3.031 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004486/0.08315, allocations: 2.899 MB / 387.9 MB, free: 64 kB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008133/0.08396, allocations: 0.5202 MB / 388.4 MB, free: 15.54 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006775/0.08464, allocations: 0.5689 MB / 388.9 MB, free: 14.96 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01636/0.101, allocations: 13.72 MB / 402.7 MB, free: 0.8672 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005239/0.1015, allocations: 374 kB / 403 MB, free: 496 kB / 362.7 MB Notification: Performance of pre-optimization done (n=49): time 3.857e-06/0.1015, allocations: 0 / 403 MB, free: 496 kB / 362.7 MB Notification: Performance of matching and sorting (n=49): time 0.001474/0.103, allocations: 1.139 MB / 404.2 MB, free: 15.34 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.046e-05/0.103, allocations: 59.41 kB / 404.2 MB, free: 15.27 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003588/0.1066, allocations: 3.106 MB / 407.3 MB, free: 12.16 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.593e-05/0.1067, allocations: 37.69 kB / 407.4 MB, free: 12.12 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008855/0.1076, allocations: 1.582 MB / 408.9 MB, free: 10.53 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001458/0.1077, allocations: 174.5 kB / 409.1 MB, free: 10.36 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002124/0.1079, allocations: 226.4 kB / 409.3 MB, free: 10.13 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001086/0.1081, allocations: 341.9 kB / 409.7 MB, free: 9.793 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004147/0.1085, allocations: 241.9 kB / 409.9 MB, free: 9.555 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005555/0.109, allocations: 0.6017 MB / 410.5 MB, free: 8.777 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009322/0.11, allocations: 0.9023 MB / 411.4 MB, free: 7.699 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.245e-06/0.11, allocations: 4 kB / 411.4 MB, free: 7.695 MB / 378.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001473/0.1114, allocations: 1.264 MB / 412.7 MB, free: 6.43 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.546e-05/0.1115, allocations: 12.06 kB / 412.7 MB, free: 6.418 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.063e-05/0.1115, allocations: 83.98 kB / 412.8 MB, free: 6.336 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.831e-05/0.1116, allocations: 27.92 kB / 412.8 MB, free: 6.309 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000411/0.112, allocations: 195.7 kB / 413 MB, free: 6.117 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.956e-05/0.112, allocations: 27.88 kB / 413 MB, free: 6.09 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006176/0.1126, allocations: 111.3 kB / 413.1 MB, free: 5.98 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.799e-05/0.1127, allocations: 68 kB / 413.2 MB, free: 5.914 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.0005658/0.1133, allocations: 441.5 kB / 413.6 MB, free: 5.473 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004159/0.1137, allocations: 421.3 kB / 414 MB, free: 5.059 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001524/0.1152, allocations: 1.208 MB / 415.2 MB, free: 3.836 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.582e-06/0.1152, allocations: 8 kB / 415.3 MB, free: 3.828 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.61e-06/0.1152, allocations: 0 / 415.3 MB, free: 3.828 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.981e-06/0.1152, allocations: 3.984 kB / 415.3 MB, free: 3.824 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002176/0.1174, allocations: 2.069 MB / 417.3 MB, free: 1.691 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.27e-05/0.1174, allocations: 75.98 kB / 417.4 MB, free: 1.617 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002555/0.1177, allocations: 91.86 kB / 417.5 MB, free: 1.527 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.869e-06/0.1177, allocations: 0 / 417.5 MB, free: 1.527 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.755e-05/0.1177, allocations: 31.98 kB / 417.5 MB, free: 1.496 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.708e-06/0.1177, allocations: 4.062 kB / 417.5 MB, free: 1.492 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.1177, allocations: 4 kB / 417.5 MB, free: 1.488 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001364/0.1191, allocations: 1.344 MB / 418.9 MB, free: 120 kB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005378/0.1196, allocations: 435.1 kB / 419.3 MB, free: 15.69 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001657/0.1198, allocations: 15.98 kB / 419.3 MB, free: 15.68 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003664/0.1202, allocations: 23.97 kB / 419.3 MB, free: 15.65 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001199/0.1203, allocations: 67.91 kB / 419.4 MB, free: 15.59 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.862e-05/0.1203, allocations: 36 kB / 419.4 MB, free: 15.55 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002147/0.1225, allocations: 2.007 MB / 421.4 MB, free: 13.55 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.51e-07/0.1225, allocations: 0 / 421.4 MB, free: 13.55 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001019/0.1235, allocations: 0.6048 MB / 422.1 MB, free: 12.95 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.002399/0.1259, allocations: 2.622 MB / 424.7 MB, free: 10.29 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001012/0.1269, allocations: 0.7717 MB / 425.4 MB, free: 9.496 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.1269, allocations: 0 / 425.4 MB, free: 9.496 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004275/0.1274, allocations: 431.2 kB / 425.9 MB, free: 9.051 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001737/0.1291, allocations: 0.6396 MB / 426.5 MB, free: 8.406 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02133/0.1504, allocations: 16.97 MB / 443.5 MB, free: 6.918 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007666/0.1512, allocations: 1.169 MB / 444.6 MB, free: 5.711 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0007896/0.152, allocations: 357.3 kB / 445 MB, free: 5.355 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008678/0.1528, allocations: 1.266 MB / 446.3 MB, free: 4.09 MB / 410.7 MB Notification: Performance of SimCode: time 1.192e-06/0.1528, allocations: 0 / 446.3 MB, free: 4.09 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2251/0.3779, allocations: 66.49 MB / 0.5007 GB, free: 62.01 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.063/9.441, allocations: 12 kB / 0.5007 GB, free: 62 MB / 410.7 MB " [Timeout remaining time 650] (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_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_InvertersExtendedModel.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/InvertersExtendedModel/InvertersExtendedModel.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.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.InvertersExtendedModel_res.csv. Warning: Get data of variable mp1.S.v from file Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.csv failed! Error: Could not read variable mp2.S.v in file Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.csv. Warning: Get data of variable mp2.S.v from file Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.csv failed! Error: Could not read variable v.p.v in file Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.csv. Warning: Get data of variable v.p.v from file Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.321893065236509]