Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001817/0.001817, allocations: 109.1 kB / 21.22 MB, free: 0.6484 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002227/0.002227, allocations: 205.5 kB / 24.51 MB, free: 3.945 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.461/1.461, allocations: 230.5 MB / 258.2 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00254/0.00254, allocations: 67.89 kB / 378.5 MB, free: 2.871 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2822/0.2847, allocations: 53.41 MB / 431.9 MB, free: 6.492 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01351/0.2983, allocations: 12.4 MB / 444.3 MB, free: 10.05 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02403/0.3223, allocations: 17.88 MB / 462.2 MB, free: 8.098 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002654/0.3249, allocations: 134.6 kB / 462.3 MB, free: 7.965 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003605/0.3286, allocations: 1.131 MB / 463.4 MB, free: 6.828 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009034/0.3376, allocations: 2.355 MB / 465.8 MB, free: 4.453 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005262/0.3428, allocations: 1.418 MB / 467.2 MB, free: 3.035 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01141/0.3543, allocations: 6.607 MB / 473.8 MB, free: 12.41 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007852/0.355, allocations: 277.7 kB / 474.1 MB, free: 12.11 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002077/0.3571, allocations: 1.151 MB / 475.2 MB, free: 10.95 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001596/0.3587, allocations: 1.114 MB / 476.4 MB, free: 9.828 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002218/0.3589, allocations: 72 kB / 476.4 MB, free: 9.758 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004002/0.3629, allocations: 1.245 MB / 477.7 MB, free: 8.512 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005267/0.3635, allocations: 325.6 kB / 478 MB, free: 8.191 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001551/0.365, allocations: 1.013 MB / 479 MB, free: 7.172 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008136/0.3731, allocations: 3.83 MB / 482.8 MB, free: 3.324 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.113e-06/0.3732, allocations: 4 kB / 482.8 MB, free: 3.32 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.926e-06/0.3732, allocations: 4 kB / 482.8 MB, free: 3.316 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000152/0.3733, allocations: 0 / 482.8 MB, free: 3.316 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.006399/0.3797, allocations: 3.726 MB / 486.6 MB, free: 15.53 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.873e-05/0.3798, allocations: 12.03 kB / 486.6 MB, free: 15.52 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.624e-05/0.3798, allocations: 13 kB / 486.6 MB, free: 15.5 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001278/0.3799, allocations: 102.5 kB / 486.7 MB, free: 15.39 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004943/0.3804, allocations: 417.4 kB / 487.1 MB, free: 14.98 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003392/0.3838, allocations: 2.291 MB / 489.4 MB, free: 12.6 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.596e-05/0.3838, allocations: 37 kB / 489.4 MB, free: 12.56 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001339/0.384, allocations: 48 kB / 489.5 MB, free: 12.52 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001395/0.3854, allocations: 0.7421 MB / 490.2 MB, free: 11.77 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.557e-05/0.3854, allocations: 0 / 490.2 MB, free: 11.77 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.03e-05/0.3855, allocations: 20 kB / 490.2 MB, free: 11.75 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.845e-05/0.3855, allocations: 19.98 kB / 490.3 MB, free: 11.73 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001624/0.3871, allocations: 0.8202 MB / 491.1 MB, free: 10.9 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005322/0.3924, allocations: 2.851 MB / 493.9 MB, free: 7.984 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001162/0.3936, allocations: 0.5203 MB / 494.4 MB, free: 7.453 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009616/0.3945, allocations: 0.573 MB / 495 MB, free: 6.875 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02497/0.4195, allocations: 13.72 MB / 0.4968 GB, free: 8.77 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007888/0.4203, allocations: 361.7 kB / 0.4972 GB, free: 8.402 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 5.631e-06/0.4203, allocations: 3.984 kB / 0.4972 GB, free: 8.398 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.002441/0.4228, allocations: 1.11 MB / 0.4982 GB, free: 7.285 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.324e-05/0.4228, allocations: 59.41 kB / 0.4983 GB, free: 7.215 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003775/0.4266, allocations: 2.939 MB / 0.5012 GB, free: 4.266 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.633e-05/0.4266, allocations: 29.7 kB / 0.5012 GB, free: 4.23 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001337/0.428, allocations: 1.498 MB / 0.5027 GB, free: 2.723 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001717/0.4281, allocations: 174.6 kB / 0.5028 GB, free: 2.551 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003177/0.4285, allocations: 226.4 kB / 0.503 GB, free: 2.324 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001639/0.4286, allocations: 341.9 kB / 0.5034 GB, free: 1.984 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005805/0.4292, allocations: 249.8 kB / 0.5036 GB, free: 1.742 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008731/0.4301, allocations: 0.594 MB / 0.5042 GB, free: 0.9727 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001492/0.4316, allocations: 0.8974 MB / 0.5051 GB, free: 15.9 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.335e-06/0.4316, allocations: 4 kB / 0.5051 GB, free: 15.89 MB / 430.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.00224/0.4338, allocations: 1.243 MB / 0.5063 GB, free: 14.64 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.692e-05/0.4338, allocations: 12 kB / 0.5063 GB, free: 14.63 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001207/0.434, allocations: 84.89 kB / 0.5064 GB, free: 14.55 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.022e-05/0.434, allocations: 16 kB / 0.5064 GB, free: 14.54 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007158/0.4347, allocations: 211.6 kB / 0.5066 GB, free: 14.33 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.985e-05/0.4347, allocations: 23.94 kB / 0.5066 GB, free: 14.3 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000963/0.4357, allocations: 107.3 kB / 0.5067 GB, free: 14.2 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001204/0.4358, allocations: 68 kB / 0.5068 GB, free: 14.13 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.0007635/0.4366, allocations: 440.5 kB / 0.5072 GB, free: 13.7 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003866/0.437, allocations: 401.5 kB / 0.5076 GB, free: 13.3 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002612/0.4396, allocations: 1.19 MB / 0.5088 GB, free: 12.11 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.735e-06/0.4396, allocations: 4 kB / 0.5088 GB, free: 12.1 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.89e-06/0.4396, allocations: 4 kB / 0.5088 GB, free: 12.1 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.753e-06/0.4396, allocations: 3.984 kB / 0.5088 GB, free: 12.09 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003359/0.443, allocations: 2.018 MB / 0.5107 GB, free: 10.01 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001031/0.4431, allocations: 72.06 kB / 0.5108 GB, free: 9.941 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004723/0.4435, allocations: 91.86 kB / 0.5109 GB, free: 9.852 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.691e-06/0.4436, allocations: 0 / 0.5109 GB, free: 9.852 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.556e-05/0.4436, allocations: 39.98 kB / 0.5109 GB, free: 9.812 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.826e-06/0.4436, allocations: 0 / 0.5109 GB, free: 9.812 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.029e-06/0.4436, allocations: 4 kB / 0.5109 GB, free: 9.809 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002399/0.446, allocations: 1.314 MB / 0.5122 GB, free: 8.469 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008013/0.4468, allocations: 419.2 kB / 0.5126 GB, free: 8.059 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002821/0.4471, allocations: 19.98 kB / 0.5126 GB, free: 8.039 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006433/0.4478, allocations: 31.97 kB / 0.5127 GB, free: 8.008 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001639/0.4479, allocations: 67.86 kB / 0.5127 GB, free: 7.941 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.284e-05/0.448, allocations: 39.94 kB / 0.5128 GB, free: 7.902 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002728/0.4507, allocations: 1.903 MB / 0.5146 GB, free: 6 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.4507, allocations: 0 / 0.5146 GB, free: 6 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001452/0.4522, allocations: 0.5891 MB / 0.5152 GB, free: 5.41 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.00413/0.4563, allocations: 2.546 MB / 0.5177 GB, free: 2.828 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001784/0.4581, allocations: 0.7743 MB / 0.5184 GB, free: 2.027 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.446e-06/0.4581, allocations: 0 / 0.5184 GB, free: 2.027 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000778/0.4589, allocations: 436 kB / 0.5189 GB, free: 1.578 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002751/0.4616, allocations: 0.6036 MB / 0.5194 GB, free: 0.9688 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2441/0.7057, allocations: 16.44 MB / 0.5355 GB, free: 106.9 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002187/0.7079, allocations: 1.109 MB / 0.5366 GB, free: 106.7 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001248/0.7091, allocations: 358.6 kB / 0.5369 GB, free: 106.6 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001113/0.7103, allocations: 1.215 MB / 0.5381 GB, free: 106.1 MB / 446.1 MB Notification: Performance of SimCode: time 1.863e-06/0.7103, allocations: 0 / 0.5381 GB, free: 106.1 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1012/0.8115, allocations: 64.09 MB / 0.6007 GB, free: 48.34 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.07/19.89, allocations: 15.61 kB / 0.6007 GB, free: 48.33 MB / 446.1 MB " [Timeout remaining time 640] (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Spice3_Examples_InvertersApartRecord_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Spice3_Examples_InvertersApartRecord.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/InvertersApartRecord/InvertersApartRecord.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 23.865420897956938]