Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.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.001514/0.001514, allocations: 108.6 kB / 21.22 MB, free: 0.75 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.00163/0.00163, allocations: 193 kB / 24.5 MB, free: 4.02 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.376/1.376, allocations: 225.6 MB / 253.3 MB, free: 13.04 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.InvertersApartRecord,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00151/0.00151, allocations: 47.94 kB / 371.2 MB, free: 9.887 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.284/0.2856, allocations: 52.19 MB / 423.4 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.0164/0.3019, allocations: 14.77 MB / 438.2 MB, free: 15.79 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02714/0.3291, allocations: 20.75 MB / 458.9 MB, free: 10.96 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00259/0.3317, allocations: 138.5 kB / 459.1 MB, free: 10.83 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003437/0.3351, allocations: 1.25 MB / 460.3 MB, free: 9.574 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007427/0.3425, allocations: 2.359 MB / 462.7 MB, free: 7.195 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004482/0.347, allocations: 1.453 MB / 464.1 MB, free: 5.738 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01082/0.3578, allocations: 6.521 MB / 470.6 MB, free: 15.2 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007364/0.3586, allocations: 269.7 kB / 470.9 MB, free: 14.91 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001934/0.3605, allocations: 1.151 MB / 472.1 MB, free: 13.75 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001723/0.3622, allocations: 1.11 MB / 473.2 MB, free: 12.63 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001943/0.3624, allocations: 72 kB / 473.2 MB, free: 12.56 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004909/0.3673, allocations: 1.479 MB / 474.7 MB, free: 11.08 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003917/0.3677, allocations: 329.6 kB / 475 MB, free: 10.76 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001656/0.3694, allocations: 1.366 MB / 476.4 MB, free: 9.383 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006498/0.3759, allocations: 3.791 MB / 480.2 MB, free: 5.574 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.3759, allocations: 0 / 480.2 MB, free: 5.574 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.375e-06/0.3759, allocations: 3.938 kB / 480.2 MB, free: 5.57 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.102e-05/0.376, allocations: 0 / 480.2 MB, free: 5.57 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.005818/0.3818, allocations: 3.738 MB / 483.9 MB, free: 1.773 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.286e-05/0.3818, allocations: 8.031 kB / 483.9 MB, free: 1.766 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.938e-05/0.3819, allocations: 17 kB / 484 MB, free: 1.75 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001205/0.382, allocations: 94.52 kB / 484.1 MB, free: 1.648 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005089/0.3825, allocations: 429.3 kB / 484.5 MB, free: 1.227 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003645/0.3861, allocations: 2.299 MB / 486.8 MB, free: 14.83 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.113e-05/0.3862, allocations: 40.98 kB / 486.8 MB, free: 14.79 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001315/0.3863, allocations: 55.94 kB / 486.9 MB, free: 14.73 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001395/0.3877, allocations: 0.7304 MB / 487.6 MB, free: 14 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.599e-05/0.3877, allocations: 0 / 487.6 MB, free: 14 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.227e-05/0.3878, allocations: 20 kB / 487.6 MB, free: 13.98 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.356e-05/0.3878, allocations: 27.92 kB / 487.6 MB, free: 13.95 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001625/0.3894, allocations: 0.8163 MB / 488.5 MB, free: 13.13 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005369/0.3948, allocations: 2.992 MB / 491.5 MB, free: 10.07 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001223/0.396, allocations: 0.5202 MB / 492 MB, free: 9.535 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009713/0.397, allocations: 0.5692 MB / 492.5 MB, free: 8.965 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0253/0.4223, allocations: 13.75 MB / 0.4944 GB, free: 10.82 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008516/0.4231, allocations: 365.6 kB / 0.4948 GB, free: 10.45 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 3.446e-06/0.4231, allocations: 4 kB / 0.4948 GB, free: 10.45 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.002663/0.4258, allocations: 1.107 MB / 0.4959 GB, free: 9.336 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.887e-05/0.4259, allocations: 55.41 kB / 0.4959 GB, free: 9.27 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003994/0.4299, allocations: 2.935 MB / 0.4988 GB, free: 6.324 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 7.728e-05/0.4299, allocations: 33.7 kB / 0.4988 GB, free: 6.285 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001519/0.4315, allocations: 1.506 MB / 0.5003 GB, free: 4.77 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002621/0.4317, allocations: 170.6 kB / 0.5004 GB, free: 4.602 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004197/0.4321, allocations: 230.4 kB / 0.5007 GB, free: 4.371 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002192/0.4324, allocations: 345.9 kB / 0.501 GB, free: 4.027 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006446/0.433, allocations: 241.9 kB / 0.5012 GB, free: 3.793 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009672/0.434, allocations: 0.6056 MB / 0.5018 GB, free: 3.008 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001617/0.4356, allocations: 0.8974 MB / 0.5027 GB, free: 1.938 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.003e-06/0.4356, allocations: 4 kB / 0.5027 GB, free: 1.934 MB / 414.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002618/0.4382, allocations: 1.247 MB / 0.5039 GB, free: 0.6758 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.122e-05/0.4382, allocations: 12 kB / 0.5039 GB, free: 0.6641 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001143/0.4384, allocations: 80 kB / 0.504 GB, free: 0.5859 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.012e-05/0.4384, allocations: 16 kB / 0.504 GB, free: 0.5703 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007153/0.4391, allocations: 200.1 kB / 0.5042 GB, free: 384 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.69e-05/0.4391, allocations: 31.86 kB / 0.5042 GB, free: 352 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001369/0.4405, allocations: 111.3 kB / 0.5043 GB, free: 240 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000125/0.4406, allocations: 64 kB / 0.5044 GB, free: 176 kB / 414.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.0009737/0.4416, allocations: 433.5 kB / 0.5048 GB, free: 15.73 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005198/0.4421, allocations: 405.5 kB / 0.5052 GB, free: 15.34 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002684/0.4448, allocations: 1.19 MB / 0.5064 GB, free: 14.15 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.123e-05/0.4448, allocations: 7.984 kB / 0.5064 GB, free: 14.14 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.342e-06/0.4448, allocations: 0 / 0.5064 GB, free: 14.14 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.641e-06/0.4448, allocations: 0 / 0.5064 GB, free: 14.14 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003525/0.4484, allocations: 2.072 MB / 0.5084 GB, free: 12 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.903e-05/0.4484, allocations: 68 kB / 0.5085 GB, free: 11.93 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004781/0.4489, allocations: 95.91 kB / 0.5086 GB, free: 11.84 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.007e-06/0.4489, allocations: 4 kB / 0.5086 GB, free: 11.84 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.15e-05/0.449, allocations: 32 kB / 0.5086 GB, free: 11.8 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.472e-06/0.449, allocations: 4 kB / 0.5086 GB, free: 11.8 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.449, allocations: 0 / 0.5086 GB, free: 11.8 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002501/0.4515, allocations: 1.322 MB / 0.5099 GB, free: 10.45 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008952/0.4524, allocations: 419.1 kB / 0.5103 GB, free: 10.04 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002778/0.4527, allocations: 8 kB / 0.5103 GB, free: 10.04 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006439/0.4533, allocations: 31.95 kB / 0.5103 GB, free: 10 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001493/0.4535, allocations: 63.88 kB / 0.5104 GB, free: 9.941 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.657e-05/0.4536, allocations: 39.98 kB / 0.5104 GB, free: 9.902 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.00295/0.4565, allocations: 1.907 MB / 0.5123 GB, free: 7.996 MB / 430.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4565, allocations: 0 / 0.5123 GB, free: 7.996 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001477/0.458, allocations: 0.5891 MB / 0.5129 GB, free: 7.406 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.004221/0.4622, allocations: 2.542 MB / 0.5153 GB, free: 4.828 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001695/0.4639, allocations: 0.7739 MB / 0.5161 GB, free: 4.027 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.799e-06/0.4639, allocations: 1.188 kB / 0.5161 GB, free: 4.027 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007942/0.4647, allocations: 435.3 kB / 0.5165 GB, free: 3.578 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002643/0.4673, allocations: 0.6184 MB / 0.5171 GB, free: 2.957 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02639/0.4937, allocations: 16.44 MB / 0.5332 GB, free: 1.98 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001546/0.4953, allocations: 1.665 MB / 0.5348 GB, free: 296 kB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.1896/0.6849, allocations: 358.8 kB / 0.5351 GB, free: 111.2 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0016/0.6865, allocations: 1.211 MB / 0.5363 GB, free: 110.6 MB / 446.1 MB Notification: Performance of SimCode: time 1.753e-06/0.6865, allocations: 0 / 0.5363 GB, free: 110.6 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1163/0.8028, allocations: 61.68 MB / 0.5966 GB, free: 57.9 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.31/19.11, allocations: 15.64 kB / 0.5966 GB, free: 57.89 MB / 446.1 MB " [Timeout remaining time 641] (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_InvertersApartRecord_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_InvertersApartRecord.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/InvertersApartRecord/InvertersApartRecord.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 22.966873586992733]