Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.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.0009663/0.0009663, allocations: 83.62 kB / 21.43 MB, free: 3.133 MB / 18.57 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.006281/0.006281, allocations: 165.8 kB / 24.7 MB, free: 8.887 MB / 18.57 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 0.9187/0.9187, allocations: 158.6 MB / 186.5 MB, free: 3.039 MB / 170.7 MB " [Timeout remaining time 179] 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.InvertersExtendedModel,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.584e-06/2.584e-06, allocations: 0 / 298.4 MB, free: 3.527 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.579e-05/2.837e-05, allocations: 2.281 kB / 298.4 MB, free: 3.523 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.1627/0.1627, allocations: 12.3 MB / 310.7 MB, free: 8.688 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.01803/0.1808, allocations: 17.12 MB / 327.9 MB, free: 12.93 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003607/0.1844, allocations: 141.6 kB / 328 MB, free: 12.83 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00348/0.1879, allocations: 1.137 MB / 329.1 MB, free: 12.25 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009219/0.1971, allocations: 2.45 MB / 331.6 MB, free: 10.38 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004641/0.2017, allocations: 1.388 MB / 333 MB, free: 9.32 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.009909/0.2116, allocations: 6.686 MB / 339.7 MB, free: 5.414 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007162/0.2123, allocations: 266.3 kB / 339.9 MB, free: 5.129 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002665/0.215, allocations: 1.469 MB / 341.4 MB, free: 3.656 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009107/0.2159, allocations: 0.7863 MB / 342.2 MB, free: 2.863 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001825/0.2161, allocations: 76 kB / 342.2 MB, free: 2.789 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003019/0.2191, allocations: 1.093 MB / 343.3 MB, free: 1.695 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002164/0.2193, allocations: 341.4 kB / 343.7 MB, free: 1.359 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00108/0.2204, allocations: 0.7709 MB / 344.4 MB, free: 0.5859 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004562/0.225, allocations: 3.978 MB / 348.4 MB, free: 12.59 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.225, allocations: 0 / 348.4 MB, free: 12.59 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.225, allocations: 0 / 348.4 MB, free: 12.59 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001347/0.2251, allocations: 0 / 348.4 MB, free: 12.59 MB / 314.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.00488/0.23, allocations: 3.863 MB / 352.3 MB, free: 8.672 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.847e-05/0.2301, allocations: 13.58 kB / 352.3 MB, free: 8.66 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001007/0.2302, allocations: 102.5 kB / 352.4 MB, free: 8.551 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004553/0.2306, allocations: 437.2 kB / 352.8 MB, free: 8.121 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002488/0.2331, allocations: 2.361 MB / 355.2 MB, free: 5.668 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.283e-05/0.2331, allocations: 36.98 kB / 355.2 MB, free: 5.629 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001026/0.2332, allocations: 59.89 kB / 355.3 MB, free: 5.57 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001021/0.2343, allocations: 0.7343 MB / 356 MB, free: 4.832 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.591e-05/0.2343, allocations: 3.984 kB / 356 MB, free: 4.828 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.879e-05/0.2343, allocations: 20 kB / 356 MB, free: 4.809 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.129e-05/0.2343, allocations: 19.98 kB / 356.1 MB, free: 4.789 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009616/0.2353, allocations: 0.8241 MB / 356.9 MB, free: 3.969 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00387/0.2392, allocations: 2.9 MB / 359.8 MB, free: 0.9961 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007357/0.2399, allocations: 0.5125 MB / 360.3 MB, free: 488 kB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005825/0.2405, allocations: 0.5662 MB / 360.9 MB, free: 15.9 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01602/0.2565, allocations: 13.76 MB / 374.6 MB, free: 1.766 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004998/0.257, allocations: 365.9 kB / 375 MB, free: 1.395 MB / 330.7 MB Notification: Performance of pre-optimization done (n=49): time 2.916e-06/0.257, allocations: 0 / 375 MB, free: 1.395 MB / 330.7 MB Notification: Performance of matching and sorting (n=49): time 0.001646/0.2587, allocations: 1.14 MB / 376.1 MB, free: 252 kB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.365e-05/0.2587, allocations: 71.34 kB / 376.2 MB, free: 168 kB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002794/0.2615, allocations: 3.127 MB / 379.3 MB, free: 13.04 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.784e-05/0.2616, allocations: 29.7 kB / 379.3 MB, free: 13 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001033/0.2626, allocations: 1.59 MB / 380.9 MB, free: 11.4 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001363/0.2627, allocations: 170.6 kB / 381.1 MB, free: 11.23 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002079/0.263, allocations: 230.3 kB / 381.3 MB, free: 11 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.917e-05/0.263, allocations: 338 kB / 381.7 MB, free: 10.67 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000346/0.2634, allocations: 241.8 kB / 381.9 MB, free: 10.43 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004666/0.2639, allocations: 0.6018 MB / 382.5 MB, free: 9.656 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008756/0.2647, allocations: 0.8984 MB / 383.4 MB, free: 8.586 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.723e-06/0.2647, allocations: 4 kB / 383.4 MB, free: 8.582 MB / 346.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001403/0.2661, allocations: 1.268 MB / 384.7 MB, free: 7.309 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.214e-05/0.2662, allocations: 12 kB / 384.7 MB, free: 7.297 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.259e-05/0.2662, allocations: 83.94 kB / 384.8 MB, free: 7.215 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.477e-05/0.2663, allocations: 19.98 kB / 384.8 MB, free: 7.195 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003845/0.2666, allocations: 200.2 kB / 385 MB, free: 7 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.697e-05/0.2667, allocations: 23.92 kB / 385 MB, free: 6.977 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000583/0.2672, allocations: 114.8 kB / 385.1 MB, free: 6.867 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.806e-05/0.2673, allocations: 71.98 kB / 385.2 MB, free: 6.797 MB / 346.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.0005437/0.2679, allocations: 445.5 kB / 385.6 MB, free: 6.352 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000236/0.2681, allocations: 425.3 kB / 386 MB, free: 5.934 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001674/0.2698, allocations: 1.221 MB / 387.2 MB, free: 4.707 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.474e-06/0.2698, allocations: 4 kB / 387.3 MB, free: 4.703 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.171e-06/0.2698, allocations: 3.938 kB / 387.3 MB, free: 4.699 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.815e-06/0.2698, allocations: 11.97 kB / 387.3 MB, free: 4.688 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002121/0.2719, allocations: 2.073 MB / 389.3 MB, free: 2.551 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.165e-05/0.272, allocations: 72.06 kB / 389.4 MB, free: 2.48 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002484/0.2722, allocations: 87.92 kB / 389.5 MB, free: 2.395 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.229e-06/0.2722, allocations: 4 kB / 389.5 MB, free: 2.391 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.664e-05/0.2723, allocations: 35.98 kB / 389.5 MB, free: 2.355 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.428e-06/0.2723, allocations: 7.938 kB / 389.5 MB, free: 2.348 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.2723, allocations: 0 / 389.5 MB, free: 2.348 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001291/0.2736, allocations: 1.337 MB / 390.9 MB, free: 0.9844 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005001/0.2741, allocations: 443 kB / 391.3 MB, free: 0.5469 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001494/0.2742, allocations: 12.06 kB / 391.3 MB, free: 0.5352 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003686/0.2746, allocations: 31.91 kB / 391.4 MB, free: 0.5039 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001082/0.2747, allocations: 59.92 kB / 391.4 MB, free: 456 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.166e-05/0.2747, allocations: 36 kB / 391.4 MB, free: 420 kB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001782/0.2765, allocations: 2.031 MB / 393.5 MB, free: 14.38 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.91e-07/0.2765, allocations: 0 / 393.5 MB, free: 14.38 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001101/0.2776, allocations: 0.6008 MB / 394.1 MB, free: 13.78 MB / 362.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.002829/0.2804, allocations: 2.636 MB / 396.7 MB, free: 11.11 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001158/0.2816, allocations: 0.7744 MB / 397.5 MB, free: 10.31 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/0.2816, allocations: 0 / 397.5 MB, free: 10.31 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004186/0.282, allocations: 432.3 kB / 397.9 MB, free: 9.863 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001803/0.2838, allocations: 0.536 MB / 398.5 MB, free: 9.332 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02013/0.304, allocations: 17.07 MB / 415.5 MB, free: 7.746 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007417/0.3047, allocations: 1.166 MB / 416.7 MB, free: 6.539 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.000788/0.3055, allocations: 365.4 kB / 417 MB, free: 6.176 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008502/0.3063, allocations: 1.277 MB / 418.3 MB, free: 4.898 MB / 378.7 MB Notification: Performance of SimCode: time 1.513e-06/0.3063, allocations: 0 / 418.3 MB, free: 4.898 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2175/0.5238, allocations: 66.85 MB / 485.2 MB, free: 141.2 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.15/10.68, allocations: 4.75 kB / 485.2 MB, free: 141.2 MB / 426.7 MB " [Timeout remaining time 649] (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel.fmu > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/InvertersExtendedModel/InvertersExtendedModel.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.csv. Warning: Get data of variable mp1.S.v from file Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.csv failed! Error: Could not read variable mp2.S.v in file Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.csv. Warning: Get data of variable mp2.S.v from file Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.csv failed! Error: Could not read variable v.p.v in file Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.csv. Warning: Get data of variable v.p.v from file Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 12.529536600224674]