Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00136/0.00136, allocations: 112.2 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001411/0.001411, allocations: 181.3 kB / 23.72 MB, free: 4.699 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.507/1.507, allocations: 225.6 MB / 252.5 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001544/0.001544, allocations: 43.94 kB / 370.4 MB, free: 9.852 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2709/0.2724, allocations: 52.19 MB / 422.6 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.0165/0.289, allocations: 15.36 MB / 438 MB, free: 15.18 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02732/0.3163, allocations: 20.83 MB / 458.8 MB, free: 10.27 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003085/0.3194, allocations: 134.6 kB / 458.9 MB, free: 10.13 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003963/0.3233, allocations: 1.265 MB / 460.2 MB, free: 8.863 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00905/0.3324, allocations: 2.413 MB / 462.6 MB, free: 6.43 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006285/0.3387, allocations: 1.457 MB / 464.1 MB, free: 4.969 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01265/0.3513, allocations: 6.649 MB / 470.7 MB, free: 14.3 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008399/0.3521, allocations: 282.2 kB / 471 MB, free: 14 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002041/0.3542, allocations: 1.178 MB / 472.2 MB, free: 12.81 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00169/0.3559, allocations: 1.149 MB / 473.3 MB, free: 11.66 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002072/0.3561, allocations: 76 kB / 473.4 MB, free: 11.58 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004016/0.3601, allocations: 1.475 MB / 474.9 MB, free: 10.11 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003874/0.3605, allocations: 329.5 kB / 475.2 MB, free: 9.781 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001595/0.3621, allocations: 1.432 MB / 476.6 MB, free: 8.34 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006083/0.3682, allocations: 4.005 MB / 480.6 MB, free: 4.316 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.3682, allocations: 0 / 480.6 MB, free: 4.316 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.086e-05/0.3682, allocations: 3.938 kB / 480.6 MB, free: 4.312 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.629e-05/0.3682, allocations: 4 kB / 480.7 MB, free: 4.309 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.007185/0.3754, allocations: 3.882 MB / 484.5 MB, free: 376 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.89e-05/0.3755, allocations: 8.031 kB / 484.5 MB, free: 368 kB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001383/0.3756, allocations: 98.5 kB / 484.6 MB, free: 260 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005958/0.3762, allocations: 433.4 kB / 485.1 MB, free: 15.82 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004448/0.3806, allocations: 2.353 MB / 487.4 MB, free: 13.38 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.604e-05/0.3807, allocations: 37 kB / 487.4 MB, free: 13.34 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001397/0.3808, allocations: 59.95 kB / 487.5 MB, free: 13.29 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001445/0.3823, allocations: 0.7382 MB / 488.2 MB, free: 12.54 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.596e-05/0.3823, allocations: 0 / 488.2 MB, free: 12.54 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.963e-05/0.3824, allocations: 20 kB / 488.3 MB, free: 12.52 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.326e-05/0.3824, allocations: 19.98 kB / 488.3 MB, free: 12.5 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001599/0.384, allocations: 0.8241 MB / 489.1 MB, free: 11.68 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005743/0.3897, allocations: 3.043 MB / 492.2 MB, free: 8.562 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001182/0.3909, allocations: 0.5125 MB / 492.7 MB, free: 8.043 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00098/0.3919, allocations: 0.5659 MB / 493.2 MB, free: 7.477 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02559/0.4175, allocations: 13.78 MB / 0.4951 GB, free: 9.309 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007896/0.4183, allocations: 361.7 kB / 0.4955 GB, free: 8.941 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 2.425e-06/0.4183, allocations: 0 / 0.4955 GB, free: 8.941 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.002323/0.4206, allocations: 1.126 MB / 0.4966 GB, free: 7.809 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.944e-05/0.4207, allocations: 63.41 kB / 0.4966 GB, free: 7.734 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004059/0.4247, allocations: 3.09 MB / 0.4996 GB, free: 4.645 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 8.182e-05/0.4248, allocations: 37.7 kB / 0.4997 GB, free: 4.602 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001542/0.4263, allocations: 1.578 MB / 0.5012 GB, free: 3.016 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002115/0.4266, allocations: 182.6 kB / 0.5014 GB, free: 2.836 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000331/0.4269, allocations: 230.3 kB / 0.5016 GB, free: 2.605 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001765/0.4271, allocations: 341.9 kB / 0.5019 GB, free: 2.266 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006084/0.4277, allocations: 249.9 kB / 0.5022 GB, free: 2.02 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008767/0.4285, allocations: 0.5979 MB / 0.5028 GB, free: 1.242 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001469/0.43, allocations: 0.8934 MB / 0.5036 GB, free: 180 kB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.905e-06/0.43, allocations: 8 kB / 0.5036 GB, free: 172 kB / 414.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002424/0.4324, allocations: 1.259 MB / 0.5049 GB, free: 14.9 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.678e-05/0.4325, allocations: 12.16 kB / 0.5049 GB, free: 14.89 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000123/0.4326, allocations: 84 kB / 0.505 GB, free: 14.8 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.353e-05/0.4326, allocations: 20 kB / 0.505 GB, free: 14.79 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000714/0.4333, allocations: 203.6 kB / 0.5052 GB, free: 14.59 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.652e-05/0.4334, allocations: 23.92 kB / 0.5052 GB, free: 14.56 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001004/0.4344, allocations: 111.3 kB / 0.5053 GB, free: 14.45 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001069/0.4345, allocations: 68 kB / 0.5054 GB, free: 14.39 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.0008542/0.4353, allocations: 457.4 kB / 0.5058 GB, free: 13.93 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004652/0.4358, allocations: 413.4 kB / 0.5062 GB, free: 13.52 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002689/0.4385, allocations: 1.215 MB / 0.5074 GB, free: 12.3 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.126e-06/0.4385, allocations: 4 kB / 0.5074 GB, free: 12.3 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.4385, allocations: 4 kB / 0.5074 GB, free: 12.3 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.074e-06/0.4385, allocations: 3.984 kB / 0.5074 GB, free: 12.29 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003799/0.4423, allocations: 2.111 MB / 0.5095 GB, free: 10.12 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001367/0.4424, allocations: 68 kB / 0.5095 GB, free: 10.05 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004892/0.4429, allocations: 95.86 kB / 0.5096 GB, free: 9.957 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.7e-06/0.4429, allocations: 8 kB / 0.5096 GB, free: 9.949 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.207e-05/0.443, allocations: 31.98 kB / 0.5097 GB, free: 9.918 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.534e-06/0.443, allocations: 4 kB / 0.5097 GB, free: 9.914 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.3e-06/0.443, allocations: 3.984 kB / 0.5097 GB, free: 9.91 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002805/0.4458, allocations: 1.343 MB / 0.511 GB, free: 8.543 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001074/0.4469, allocations: 439.1 kB / 0.5114 GB, free: 8.113 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003153/0.4472, allocations: 12.06 kB / 0.5114 GB, free: 8.102 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006778/0.4479, allocations: 31.95 kB / 0.5114 GB, free: 8.07 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001681/0.4481, allocations: 63.88 kB / 0.5115 GB, free: 8.008 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.184e-05/0.4481, allocations: 39.98 kB / 0.5115 GB, free: 7.969 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003347/0.4515, allocations: 2.003 MB / 0.5135 GB, free: 5.973 MB / 430.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4515, allocations: 0 / 0.5135 GB, free: 5.973 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001675/0.4532, allocations: 0.6008 MB / 0.5141 GB, free: 5.371 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.0041/0.4573, allocations: 2.57 MB / 0.5166 GB, free: 2.766 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001836/0.4591, allocations: 0.7789 MB / 0.5174 GB, free: 1.961 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.4591, allocations: 0 / 0.5174 GB, free: 1.961 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008543/0.46, allocations: 427.2 kB / 0.5178 GB, free: 1.52 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002978/0.4629, allocations: 0.6421 MB / 0.5184 GB, free: 0.8789 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2376/0.7005, allocations: 17.06 MB / 0.535 GB, free: 110.2 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001457/0.7019, allocations: 1.709 MB / 0.5367 GB, free: 109.5 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001223/0.7032, allocations: 361.1 kB / 0.5371 GB, free: 109.4 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001106/0.7043, allocations: 1.269 MB / 0.5383 GB, free: 109.2 MB / 446.1 MB Notification: Performance of SimCode: time 1.453e-06/0.7043, allocations: 0 / 0.5383 GB, free: 109.2 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1047/0.809, allocations: 63.8 MB / 0.6006 GB, free: 53 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 20.02/20.83, allocations: 5.844 kB / 0.6006 GB, free: 53 MB / 446.1 MB " [Timeout remaining time 639] (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & python3 -m fmpy simulate --output-file Modelica_4.0.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_0_0_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/InvertersExtendedModel/InvertersExtendedModel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.csv. Warning: Get data of variable mp1.S.v from file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.csv failed! Error: Could not read variable mp2.S.v in file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.csv. Warning: Get data of variable mp2.S.v from file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.csv failed! Error: Could not read variable v.p.v in file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.csv. Warning: Get data of variable v.p.v from file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 23.574430954999116]