Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001702/0.001702, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.002108/0.002108, allocations: 212.2 kB / 23.73 MB, free: 4.523 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.468/1.468, allocations: 230.6 MB / 257.5 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4_1_0_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001547/0.001547, allocations: 47.92 kB / 377.7 MB, free: 3.051 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2124/0.214, allocations: 53.37 MB / 431.1 MB, free: 6.621 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01469/0.2287, allocations: 12.9 MB / 444 MB, free: 9.672 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02396/0.2526, allocations: 17.97 MB / 461.9 MB, free: 7.637 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002662/0.2553, allocations: 134.6 kB / 462.1 MB, free: 7.504 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003617/0.2589, allocations: 1.156 MB / 463.2 MB, free: 6.344 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007701/0.2666, allocations: 2.409 MB / 465.6 MB, free: 3.914 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004226/0.2708, allocations: 1.414 MB / 467 MB, free: 2.5 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01028/0.2811, allocations: 6.727 MB / 473.8 MB, free: 11.75 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00059/0.2817, allocations: 274.2 kB / 474 MB, free: 11.45 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001645/0.2833, allocations: 1.194 MB / 475.2 MB, free: 10.25 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001382/0.2847, allocations: 1.145 MB / 476.4 MB, free: 9.102 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002046/0.2849, allocations: 76 kB / 476.5 MB, free: 9.027 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003132/0.2881, allocations: 1.237 MB / 477.7 MB, free: 7.789 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003384/0.2884, allocations: 329.5 kB / 478 MB, free: 7.465 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001187/0.2896, allocations: 1.048 MB / 479.1 MB, free: 6.41 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005257/0.2948, allocations: 4.048 MB / 483.1 MB, free: 2.344 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.2948, allocations: 4 kB / 483.1 MB, free: 2.34 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.2948, allocations: 0 / 483.1 MB, free: 2.34 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.867e-05/0.2949, allocations: 0 / 483.1 MB, free: 2.34 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.006192/0.3011, allocations: 3.89 MB / 487 MB, free: 14.39 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.327e-05/0.3011, allocations: 8.031 kB / 487 MB, free: 14.38 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001258/0.3013, allocations: 98.45 kB / 487.1 MB, free: 14.27 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000505/0.3018, allocations: 433.3 kB / 487.5 MB, free: 13.85 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003968/0.3057, allocations: 2.341 MB / 489.9 MB, free: 11.42 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.703e-05/0.3058, allocations: 40.94 kB / 489.9 MB, free: 11.38 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001415/0.3059, allocations: 59.89 kB / 490 MB, free: 11.32 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001442/0.3074, allocations: 0.7343 MB / 490.7 MB, free: 10.58 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.089e-05/0.3074, allocations: 3.984 kB / 490.7 MB, free: 10.57 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.681e-05/0.3074, allocations: 16 kB / 490.7 MB, free: 10.56 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.959e-05/0.3075, allocations: 27.98 kB / 490.8 MB, free: 10.53 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00175/0.3092, allocations: 0.8124 MB / 491.6 MB, free: 9.719 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005753/0.315, allocations: 2.895 MB / 494.5 MB, free: 6.758 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001278/0.3163, allocations: 0.5267 MB / 495 MB, free: 6.227 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001003/0.3173, allocations: 0.5692 MB / 495.6 MB, free: 5.648 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02725/0.3445, allocations: 13.72 MB / 0.4973 GB, free: 7.547 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007946/0.3453, allocations: 369.6 kB / 0.4977 GB, free: 7.172 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 2.485e-06/0.3453, allocations: 0 / 0.4977 GB, free: 7.172 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.002457/0.3478, allocations: 1.13 MB / 0.4988 GB, free: 6.035 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.366e-05/0.3478, allocations: 67.39 kB / 0.4989 GB, free: 5.957 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004197/0.352, allocations: 3.102 MB / 0.5019 GB, free: 2.855 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 8.928e-05/0.3521, allocations: 33.7 kB / 0.5019 GB, free: 2.816 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001581/0.3537, allocations: 1.589 MB / 0.5035 GB, free: 1.219 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000228/0.3539, allocations: 166.6 kB / 0.5036 GB, free: 1.055 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003457/0.3543, allocations: 238.4 kB / 0.5039 GB, free: 0.8164 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001656/0.3544, allocations: 330 kB / 0.5042 GB, free: 500 kB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006388/0.3551, allocations: 253.8 kB / 0.5044 GB, free: 244 kB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009294/0.356, allocations: 0.5979 MB / 0.505 GB, free: 15.46 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001553/0.3576, allocations: 0.9012 MB / 0.5059 GB, free: 14.39 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.108e-06/0.3576, allocations: 4 kB / 0.5059 GB, free: 14.39 MB / 430.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.0025/0.3601, allocations: 1.266 MB / 0.5071 GB, free: 13.11 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.415e-05/0.3601, allocations: 8 kB / 0.5071 GB, free: 13.11 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001321/0.3602, allocations: 80.84 kB / 0.5072 GB, free: 13.03 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.548e-05/0.3603, allocations: 20 kB / 0.5072 GB, free: 13.01 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007463/0.361, allocations: 207.6 kB / 0.5074 GB, free: 12.8 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.95e-05/0.361, allocations: 23.92 kB / 0.5074 GB, free: 12.78 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001011/0.362, allocations: 115.2 kB / 0.5076 GB, free: 12.67 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001116/0.3622, allocations: 68 kB / 0.5076 GB, free: 12.6 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.0008233/0.363, allocations: 465.4 kB / 0.5081 GB, free: 12.14 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004289/0.3634, allocations: 413.4 kB / 0.5085 GB, free: 11.73 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002755/0.3662, allocations: 1.207 MB / 0.5096 GB, free: 10.52 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.009e-05/0.3662, allocations: 7.984 kB / 0.5096 GB, free: 10.51 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.128e-06/0.3662, allocations: 0 / 0.5096 GB, free: 10.51 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.983e-06/0.3662, allocations: 4 kB / 0.5096 GB, free: 10.5 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003649/0.3698, allocations: 2.068 MB / 0.5117 GB, free: 8.375 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001086/0.3699, allocations: 68 kB / 0.5117 GB, free: 8.309 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000486/0.3704, allocations: 95.92 kB / 0.5118 GB, free: 8.215 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.496e-06/0.3704, allocations: 7.984 kB / 0.5118 GB, free: 8.207 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.962e-05/0.3705, allocations: 32 kB / 0.5119 GB, free: 8.176 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.156e-06/0.3705, allocations: 0 / 0.5119 GB, free: 8.176 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.3705, allocations: 0 / 0.5119 GB, free: 8.176 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002407/0.3729, allocations: 1.343 MB / 0.5132 GB, free: 6.809 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000923/0.3738, allocations: 451 kB / 0.5136 GB, free: 6.367 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003042/0.3741, allocations: 8 kB / 0.5136 GB, free: 6.359 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007013/0.3748, allocations: 36.02 kB / 0.5136 GB, free: 6.324 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000168/0.375, allocations: 63.88 kB / 0.5137 GB, free: 6.262 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.494e-05/0.3751, allocations: 39.98 kB / 0.5137 GB, free: 6.223 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002788/0.3779, allocations: 2.003 MB / 0.5157 GB, free: 4.227 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3779, allocations: 0 / 0.5157 GB, free: 4.227 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.00139/0.3793, allocations: 0.5969 MB / 0.5163 GB, free: 3.629 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.003825/0.3831, allocations: 2.573 MB / 0.5188 GB, free: 1.02 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001677/0.3848, allocations: 0.775 MB / 0.5195 GB, free: 224 kB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.3848, allocations: 4 kB / 0.5196 GB, free: 220 kB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008385/0.3856, allocations: 431.8 kB / 0.52 GB, free: 15.77 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002647/0.3883, allocations: 0.6356 MB / 0.5206 GB, free: 15.13 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1984/0.5867, allocations: 17.04 MB / 0.5372 GB, free: 104.6 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001106/0.5878, allocations: 1.167 MB / 0.5384 GB, free: 104.4 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001095/0.5889, allocations: 357.7 kB / 0.5387 GB, free: 104.3 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001027/0.5899, allocations: 1.265 MB / 0.5399 GB, free: 104 MB / 446.1 MB Notification: Performance of SimCode: time 1.001e-06/0.5899, allocations: 0 / 0.5399 GB, free: 104 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09663/0.6866, allocations: 66.77 MB / 0.6051 GB, free: 42.06 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.99/16.67, allocations: 7.984 kB / 0.6051 GB, free: 42.05 MB / 446.1 MB " [Timeout remaining time 643] (rm -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_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_4_1_0_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel.fmu > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/InvertersExtendedModel/InvertersExtendedModel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.csv. Warning: Get data of variable mp1.S.v from file Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.csv failed! Error: Could not read variable mp2.S.v in file Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.csv. Warning: Get data of variable mp2.S.v from file Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.csv failed! Error: Could not read variable v.p.v in file Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.csv. Warning: Get data of variable v.p.v from file Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 19.294129496003734]