Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.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.00171/0.00171, allocations: 105.1 kB / 21.22 MB, free: 0.6289 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.002048/0.002048, allocations: 212.5 kB / 24.51 MB, free: 3.918 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.389/1.389, allocations: 230.6 MB / 258.3 MB, free: 7.742 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.InvertersApartRecord,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001561/0.001561, allocations: 43.92 kB / 378.5 MB, free: 2.969 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2737/0.2753, allocations: 53.37 MB / 431.9 MB, free: 6.648 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01368/0.289, allocations: 12.39 MB / 444.2 MB, free: 10.21 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02524/0.3142, allocations: 17.89 MB / 462.1 MB, free: 8.25 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003047/0.3172, allocations: 134.6 kB / 462.3 MB, free: 8.117 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00369/0.3209, allocations: 1.131 MB / 463.4 MB, free: 6.98 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008615/0.3295, allocations: 2.359 MB / 465.8 MB, free: 4.602 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005468/0.335, allocations: 1.41 MB / 467.2 MB, free: 3.191 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01144/0.3464, allocations: 6.607 MB / 473.8 MB, free: 12.56 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007186/0.3472, allocations: 277.7 kB / 474 MB, free: 12.26 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001922/0.3491, allocations: 1.151 MB / 475.2 MB, free: 11.11 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001564/0.3507, allocations: 1.114 MB / 476.3 MB, free: 9.984 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002095/0.3509, allocations: 80 kB / 476.4 MB, free: 9.906 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003574/0.3544, allocations: 1.233 MB / 477.6 MB, free: 8.672 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003857/0.3548, allocations: 329.6 kB / 477.9 MB, free: 8.348 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001302/0.3561, allocations: 1.005 MB / 478.9 MB, free: 7.336 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005988/0.3621, allocations: 3.838 MB / 482.8 MB, free: 3.48 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.3621, allocations: 0 / 482.8 MB, free: 3.48 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.414e-06/0.3621, allocations: 0 / 482.8 MB, free: 3.48 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.96e-05/0.3622, allocations: 0 / 482.8 MB, free: 3.48 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.005615/0.3678, allocations: 3.73 MB / 486.5 MB, free: 15.69 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.557e-05/0.3678, allocations: 8.031 kB / 486.5 MB, free: 15.68 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.657e-05/0.3679, allocations: 17 kB / 486.5 MB, free: 15.67 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001275/0.368, allocations: 98.5 kB / 486.6 MB, free: 15.56 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004722/0.3685, allocations: 417.4 kB / 487 MB, free: 15.15 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003359/0.3718, allocations: 2.295 MB / 489.3 MB, free: 12.76 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.909e-05/0.3719, allocations: 37 kB / 489.4 MB, free: 12.72 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001448/0.372, allocations: 52 kB / 489.4 MB, free: 12.67 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001406/0.3734, allocations: 0.7421 MB / 490.2 MB, free: 11.93 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.609e-05/0.3734, allocations: 0 / 490.2 MB, free: 11.93 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.423e-05/0.3735, allocations: 19.98 kB / 490.2 MB, free: 11.91 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.656e-05/0.3735, allocations: 16 kB / 490.2 MB, free: 11.89 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00158/0.3751, allocations: 0.8241 MB / 491 MB, free: 11.06 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005261/0.3804, allocations: 2.852 MB / 493.9 MB, free: 8.145 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001148/0.3815, allocations: 0.5125 MB / 494.4 MB, free: 7.621 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000929/0.3825, allocations: 0.5614 MB / 495 MB, free: 7.051 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02534/0.4078, allocations: 13.73 MB / 0.4968 GB, free: 8.934 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007965/0.4086, allocations: 357.7 kB / 0.4971 GB, free: 8.57 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 2.946e-06/0.4086, allocations: 0 / 0.4971 GB, free: 8.57 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.002339/0.4109, allocations: 1.107 MB / 0.4982 GB, free: 7.457 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.571e-05/0.411, allocations: 67.33 kB / 0.4982 GB, free: 7.379 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003891/0.4149, allocations: 2.935 MB / 0.5011 GB, free: 4.434 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 6.949e-05/0.4149, allocations: 41.69 kB / 0.5012 GB, free: 4.387 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001486/0.4164, allocations: 1.491 MB / 0.5026 GB, free: 2.887 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002004/0.4166, allocations: 174.6 kB / 0.5028 GB, free: 2.715 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000346/0.417, allocations: 234.3 kB / 0.503 GB, free: 2.48 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001858/0.4172, allocations: 341.9 kB / 0.5033 GB, free: 2.141 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005733/0.4177, allocations: 249.8 kB / 0.5036 GB, free: 1.898 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000855/0.4186, allocations: 0.594 MB / 0.5041 GB, free: 1.129 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001477/0.4201, allocations: 0.8974 MB / 0.505 GB, free: 60 kB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.787e-06/0.4201, allocations: 4 kB / 0.505 GB, free: 56 kB / 414.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002464/0.4225, allocations: 1.247 MB / 0.5062 GB, free: 14.8 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.634e-05/0.4226, allocations: 8 kB / 0.5062 GB, free: 14.79 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001154/0.4227, allocations: 80 kB / 0.5063 GB, free: 14.71 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.336e-05/0.4227, allocations: 20 kB / 0.5063 GB, free: 14.7 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007032/0.4234, allocations: 200.2 kB / 0.5065 GB, free: 14.5 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.112e-05/0.4235, allocations: 27.92 kB / 0.5066 GB, free: 14.47 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009864/0.4244, allocations: 111.3 kB / 0.5067 GB, free: 14.36 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001199/0.4246, allocations: 64 kB / 0.5067 GB, free: 14.3 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.000756/0.4253, allocations: 437.4 kB / 0.5071 GB, free: 13.86 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004311/0.4257, allocations: 397.5 kB / 0.5075 GB, free: 13.47 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002529/0.4283, allocations: 1.194 MB / 0.5087 GB, free: 12.27 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.594e-06/0.4283, allocations: 8 kB / 0.5087 GB, free: 12.27 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.618e-06/0.4283, allocations: 0 / 0.5087 GB, free: 12.27 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.732e-06/0.4283, allocations: 7.922 kB / 0.5087 GB, free: 12.26 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003389/0.4317, allocations: 2.018 MB / 0.5107 GB, free: 10.18 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.98e-05/0.4318, allocations: 71.98 kB / 0.5107 GB, free: 10.11 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004726/0.4323, allocations: 99.86 kB / 0.5108 GB, free: 10.01 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.058e-05/0.4323, allocations: 4 kB / 0.5108 GB, free: 10 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.876e-05/0.4323, allocations: 32 kB / 0.5109 GB, free: 9.973 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.477e-06/0.4323, allocations: 0 / 0.5109 GB, free: 9.973 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.122e-06/0.4323, allocations: 7.984 kB / 0.5109 GB, free: 9.965 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002313/0.4346, allocations: 1.307 MB / 0.5122 GB, free: 8.633 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007994/0.4354, allocations: 419.2 kB / 0.5126 GB, free: 8.223 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002867/0.4357, allocations: 12 kB / 0.5126 GB, free: 8.211 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006423/0.4364, allocations: 36.02 kB / 0.5126 GB, free: 8.176 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001664/0.4365, allocations: 67.81 kB / 0.5127 GB, free: 8.109 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.385e-05/0.4366, allocations: 39.98 kB / 0.5127 GB, free: 8.07 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002525/0.4392, allocations: 1.903 MB / 0.5146 GB, free: 6.168 MB / 430.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4392, allocations: 0 / 0.5146 GB, free: 6.168 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.00137/0.4405, allocations: 0.5891 MB / 0.5151 GB, free: 5.578 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.003729/0.4443, allocations: 2.542 MB / 0.5176 GB, free: 3 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001676/0.4459, allocations: 0.7833 MB / 0.5184 GB, free: 2.191 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.4459, allocations: 0 / 0.5184 GB, free: 2.191 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007427/0.4467, allocations: 418.9 kB / 0.5188 GB, free: 1.758 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0025/0.4492, allocations: 0.6215 MB / 0.5194 GB, free: 1.133 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02443/0.4736, allocations: 16.44 MB / 0.5354 GB, free: 160 kB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2443/0.7179, allocations: 1.114 MB / 0.5365 GB, free: 107 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001412/0.7193, allocations: 354.2 kB / 0.5369 GB, free: 107 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001284/0.7206, allocations: 1.214 MB / 0.5381 GB, free: 106.5 MB / 446.1 MB Notification: Performance of SimCode: time 1.332e-06/0.7206, allocations: 0 / 0.5381 GB, free: 106.5 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09682/0.8174, allocations: 64.13 MB / 0.6007 GB, free: 48.79 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.52/19.33, allocations: 12 kB / 0.6007 GB, free: 48.78 MB / 446.1 MB " [Timeout remaining time 640] (rm -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_InvertersApartRecord_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_InvertersApartRecord.fmu > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_4.1.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: 23.10283376008738]