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.00141/0.00141, allocations: 109.5 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.002011/0.002011, allocations: 184.4 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.42/1.42, allocations: 225.6 MB / 252.5 MB, free: 13.03 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001696/0.001696, allocations: 43.92 kB / 370.4 MB, free: 9.855 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2404/0.2421, allocations: 52.18 MB / 422.6 MB, free: 14.6 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01596/0.2581, allocations: 14.77 MB / 437.4 MB, free: 15.76 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02943/0.2875, allocations: 20.75 MB / 458.1 MB, free: 10.93 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002837/0.2903, allocations: 138.5 kB / 458.3 MB, free: 10.8 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003954/0.2943, allocations: 1.25 MB / 459.5 MB, free: 9.543 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008981/0.3033, allocations: 2.359 MB / 461.9 MB, free: 7.164 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005999/0.3093, allocations: 1.457 MB / 463.3 MB, free: 5.703 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01166/0.3209, allocations: 6.525 MB / 469.9 MB, free: 15.16 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008769/0.3218, allocations: 273.7 kB / 470.1 MB, free: 14.86 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002086/0.3239, allocations: 1.143 MB / 471.3 MB, free: 13.71 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002082/0.326, allocations: 1.11 MB / 472.4 MB, free: 12.6 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004202/0.3264, allocations: 76 kB / 472.5 MB, free: 12.52 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005257/0.3316, allocations: 1.479 MB / 473.9 MB, free: 11.04 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006237/0.3323, allocations: 333.6 kB / 474.3 MB, free: 10.71 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002207/0.3345, allocations: 1.37 MB / 475.6 MB, free: 9.336 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007132/0.3416, allocations: 3.783 MB / 479.4 MB, free: 5.535 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.133e-06/0.3416, allocations: 11.94 kB / 479.4 MB, free: 5.523 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.3416, allocations: 0 / 479.4 MB, free: 5.523 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001235/0.3417, allocations: 0 / 479.4 MB, free: 5.523 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.006763/0.3485, allocations: 3.734 MB / 483.2 MB, free: 1.73 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.77e-05/0.3486, allocations: 8.031 kB / 483.2 MB, free: 1.723 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001974/0.3488, allocations: 98.5 kB / 483.3 MB, free: 1.617 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000613/0.3494, allocations: 413.4 kB / 483.7 MB, free: 1.211 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004326/0.3537, allocations: 2.303 MB / 486 MB, free: 14.81 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.712e-05/0.3537, allocations: 33 kB / 486 MB, free: 14.78 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002468/0.354, allocations: 59.95 kB / 486.1 MB, free: 14.72 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001684/0.3557, allocations: 0.7304 MB / 486.8 MB, free: 13.98 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.921e-05/0.3557, allocations: 0 / 486.8 MB, free: 13.98 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.087e-05/0.3558, allocations: 19.98 kB / 486.8 MB, free: 13.96 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.985e-05/0.3558, allocations: 20 kB / 486.8 MB, free: 13.94 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001704/0.3575, allocations: 0.8241 MB / 487.7 MB, free: 13.12 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006616/0.3641, allocations: 2.992 MB / 490.6 MB, free: 10.05 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001221/0.3653, allocations: 0.5195 MB / 491.2 MB, free: 9.527 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009865/0.3663, allocations: 0.5731 MB / 491.7 MB, free: 8.953 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02654/0.3929, allocations: 13.75 MB / 0.4936 GB, free: 10.81 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008391/0.3937, allocations: 365.6 kB / 0.494 GB, free: 10.44 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 3.116e-06/0.3937, allocations: 4 kB / 0.494 GB, free: 10.44 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.002591/0.3963, allocations: 1.107 MB / 0.4951 GB, free: 9.324 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.913e-05/0.3964, allocations: 63.41 kB / 0.4951 GB, free: 9.25 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005044/0.4014, allocations: 2.935 MB / 0.498 GB, free: 6.305 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 7.572e-05/0.4015, allocations: 33.7 kB / 0.498 GB, free: 6.266 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001587/0.4031, allocations: 1.498 MB / 0.4995 GB, free: 4.758 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002103/0.4033, allocations: 178.6 kB / 0.4997 GB, free: 4.582 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003456/0.4036, allocations: 230.4 kB / 0.4999 GB, free: 4.352 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001648/0.4038, allocations: 341.9 kB / 0.5002 GB, free: 4.012 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005883/0.4044, allocations: 241.9 kB / 0.5004 GB, free: 3.773 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000963/0.4054, allocations: 0.6095 MB / 0.501 GB, free: 2.984 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001542/0.4069, allocations: 0.8935 MB / 0.5019 GB, free: 1.918 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.071e-05/0.4069, allocations: 4 kB / 0.5019 GB, free: 1.914 MB / 414.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002302/0.4092, allocations: 1.243 MB / 0.5031 GB, free: 0.6602 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.516e-05/0.4092, allocations: 12 kB / 0.5031 GB, free: 0.6484 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001242/0.4094, allocations: 83.98 kB / 0.5032 GB, free: 0.5664 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.468e-05/0.4094, allocations: 16 kB / 0.5032 GB, free: 0.5508 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007251/0.4101, allocations: 199.7 kB / 0.5034 GB, free: 364 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.361e-05/0.4102, allocations: 27.88 kB / 0.5035 GB, free: 336 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001106/0.4113, allocations: 111.4 kB / 0.5036 GB, free: 224 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001217/0.4114, allocations: 71.98 kB / 0.5036 GB, free: 152 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.0008165/0.4122, allocations: 429.5 kB / 0.504 GB, free: 15.71 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005808/0.4128, allocations: 401.5 kB / 0.5044 GB, free: 15.32 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002893/0.4157, allocations: 1.197 MB / 0.5056 GB, free: 14.12 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.106e-05/0.4157, allocations: 4 kB / 0.5056 GB, free: 14.12 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.832e-06/0.4157, allocations: 3.938 kB / 0.5056 GB, free: 14.12 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.065e-06/0.4157, allocations: 3.984 kB / 0.5056 GB, free: 14.11 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004323/0.42, allocations: 2.06 MB / 0.5076 GB, free: 11.98 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001111/0.4201, allocations: 72 kB / 0.5077 GB, free: 11.91 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004824/0.4206, allocations: 95.92 kB / 0.5078 GB, free: 11.82 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.254e-06/0.4206, allocations: 0 / 0.5078 GB, free: 11.82 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.332e-05/0.4207, allocations: 31.98 kB / 0.5078 GB, free: 11.79 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.764e-06/0.4207, allocations: 4 kB / 0.5078 GB, free: 11.79 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/0.4207, allocations: 0 / 0.5078 GB, free: 11.79 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002747/0.4234, allocations: 1.318 MB / 0.5091 GB, free: 10.44 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001057/0.4245, allocations: 423.2 kB / 0.5095 GB, free: 10.03 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005179/0.425, allocations: 15.98 kB / 0.5095 GB, free: 10.01 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000849/0.4259, allocations: 27.97 kB / 0.5095 GB, free: 9.984 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001617/0.426, allocations: 67.86 kB / 0.5096 GB, free: 9.918 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.861e-05/0.4261, allocations: 36 kB / 0.5096 GB, free: 9.883 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003421/0.4295, allocations: 1.907 MB / 0.5115 GB, free: 7.977 MB / 430.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.4295, allocations: 0 / 0.5115 GB, free: 7.977 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001699/0.4312, allocations: 0.5852 MB / 0.5121 GB, free: 7.391 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.004154/0.4354, allocations: 2.546 MB / 0.5146 GB, free: 4.809 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001729/0.4371, allocations: 0.7749 MB / 0.5153 GB, free: 4.008 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 6.142e-06/0.4371, allocations: 4 kB / 0.5153 GB, free: 4.004 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000832/0.4379, allocations: 435.2 kB / 0.5157 GB, free: 3.555 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003011/0.441, allocations: 0.6068 MB / 0.5163 GB, free: 2.945 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02996/0.4709, allocations: 16.44 MB / 0.5324 GB, free: 1.969 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001515/0.4724, allocations: 1.665 MB / 0.534 GB, free: 284 kB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.2241/0.6965, allocations: 350.1 kB / 0.5343 GB, free: 111.2 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001557/0.6981, allocations: 1.219 MB / 0.5355 GB, free: 110.6 MB / 446.1 MB Notification: Performance of SimCode: time 1.633e-06/0.6981, allocations: 0.5 kB / 0.5355 GB, free: 110.6 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1069/0.8049, allocations: 61.66 MB / 0.5958 GB, free: 58.02 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.23/19.03, allocations: 8.375 kB / 0.5958 GB, free: 58.02 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 660] Reference file matches [Calling sys.exit(0), Time elapsed: 22.222528354031965]