Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.004851/0.004851, allocations: 110.9 kB / 21.97 MB, free: 5.25 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.001343/0.001343, allocations: 206.5 kB / 25.27 MB, free: 3.238 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.356/1.356, allocations: 207.6 MB / 236.1 MB, free: 9.977 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001669/0.001669, allocations: 47.94 kB / 348 MB, free: 10.04 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2478/0.2495, allocations: 49.17 MB / 397.1 MB, free: 8.969 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01098/0.2604, allocations: 14.09 MB / 411.2 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02582/0.2863, allocations: 19.81 MB / 431 MB, free: 15.11 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004055/0.2903, allocations: 137.6 kB / 431.2 MB, free: 15.02 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004392/0.2947, allocations: 1.216 MB / 432.4 MB, free: 14.11 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009686/0.3044, allocations: 2.33 MB / 434.7 MB, free: 12.26 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006818/0.3112, allocations: 1.403 MB / 436.1 MB, free: 11.18 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01089/0.3221, allocations: 6.383 MB / 442.5 MB, free: 5.828 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007077/0.3228, allocations: 273.7 kB / 442.8 MB, free: 5.531 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001948/0.3248, allocations: 1.054 MB / 443.8 MB, free: 4.473 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001524/0.3263, allocations: 1.083 MB / 444.9 MB, free: 3.383 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000175/0.3265, allocations: 76 kB / 445 MB, free: 3.309 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00406/0.3305, allocations: 1.171 MB / 446.1 MB, free: 2.137 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004332/0.3309, allocations: 321.7 kB / 446.5 MB, free: 1.82 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001844/0.3328, allocations: 1.378 MB / 447.8 MB, free: 444 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007165/0.34, allocations: 3.819 MB / 451.7 MB, free: 12.6 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.34, allocations: 0 / 451.7 MB, free: 12.6 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.34, allocations: 0 / 451.7 MB, free: 12.6 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.109e-05/0.34, allocations: 0 / 451.7 MB, free: 12.6 MB / 366.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.006433/0.3465, allocations: 3.765 MB / 455.4 MB, free: 8.77 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.4e-05/0.3465, allocations: 15.98 kB / 455.4 MB, free: 8.754 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.576e-05/0.3466, allocations: 13 kB / 455.4 MB, free: 8.742 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001352/0.3467, allocations: 102.5 kB / 455.5 MB, free: 8.633 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005606/0.3473, allocations: 413.4 kB / 456 MB, free: 8.227 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003968/0.3512, allocations: 2.315 MB / 458.3 MB, free: 5.816 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.01e-05/0.3513, allocations: 37 kB / 458.3 MB, free: 5.781 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001393/0.3514, allocations: 51.95 kB / 458.4 MB, free: 5.73 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001409/0.3528, allocations: 0.7382 MB / 459.1 MB, free: 4.984 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.656e-05/0.3528, allocations: 0 / 459.1 MB, free: 4.984 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.132e-05/0.3529, allocations: 23.98 kB / 459.1 MB, free: 4.961 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.595e-05/0.3529, allocations: 19.98 kB / 459.1 MB, free: 4.941 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001622/0.3545, allocations: 0.8241 MB / 460 MB, free: 4.117 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005534/0.3601, allocations: 3.004 MB / 463 MB, free: 1.043 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001192/0.3613, allocations: 0.528 MB / 463.5 MB, free: 0.5078 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000982/0.3622, allocations: 0.5701 MB / 464.1 MB, free: 15.92 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02463/0.3869, allocations: 13.8 MB / 477.9 MB, free: 1.742 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000775/0.3877, allocations: 357.6 kB / 478.2 MB, free: 1.375 MB / 382.1 MB Notification: Performance of pre-optimization done (n=49): time 2.645e-06/0.3877, allocations: 0 / 478.2 MB, free: 1.375 MB / 382.1 MB Notification: Performance of matching and sorting (n=49): time 0.002323/0.39, allocations: 1.107 MB / 479.3 MB, free: 272 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.46e-05/0.39, allocations: 67.39 kB / 479.4 MB, free: 192 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003506/0.3935, allocations: 2.952 MB / 482.3 MB, free: 13.22 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 7.536e-05/0.3936, allocations: 33.7 kB / 482.4 MB, free: 13.18 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001324/0.3949, allocations: 1.502 MB / 483.9 MB, free: 11.68 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001769/0.3951, allocations: 174.6 kB / 484 MB, free: 11.5 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003083/0.3954, allocations: 234.3 kB / 484.3 MB, free: 11.27 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001474/0.3956, allocations: 338 kB / 484.6 MB, free: 10.93 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006074/0.3962, allocations: 245.8 kB / 484.8 MB, free: 10.69 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008634/0.397, allocations: 0.6017 MB / 485.4 MB, free: 9.914 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001499/0.3985, allocations: 0.9012 MB / 486.3 MB, free: 8.84 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.868e-06/0.3985, allocations: 8 kB / 486.4 MB, free: 8.832 MB / 398.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002407/0.401, allocations: 1.243 MB / 487.6 MB, free: 7.578 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.758e-05/0.401, allocations: 16.03 kB / 487.6 MB, free: 7.562 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000114/0.4011, allocations: 80 kB / 487.7 MB, free: 7.484 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.233e-05/0.4011, allocations: 23.94 kB / 487.7 MB, free: 7.461 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007132/0.4018, allocations: 195.7 kB / 487.9 MB, free: 7.27 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.776e-05/0.4019, allocations: 31.86 kB / 487.9 MB, free: 7.238 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001101/0.403, allocations: 111.3 kB / 488 MB, free: 7.129 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001058/0.4031, allocations: 71.98 kB / 488.1 MB, free: 7.059 MB / 398.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.0007673/0.4038, allocations: 433.4 kB / 488.5 MB, free: 6.625 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004228/0.4043, allocations: 401.5 kB / 488.9 MB, free: 6.23 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002585/0.4069, allocations: 1.205 MB / 490.1 MB, free: 5.02 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.478e-06/0.4069, allocations: 4 kB / 490.1 MB, free: 5.016 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.344e-06/0.4069, allocations: 4 kB / 490.1 MB, free: 5.012 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.534e-06/0.4069, allocations: 3.984 kB / 490.1 MB, free: 5.008 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003401/0.4103, allocations: 2.061 MB / 492.2 MB, free: 2.883 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.761e-05/0.4104, allocations: 68 kB / 492.3 MB, free: 2.816 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004791/0.4109, allocations: 103.9 kB / 492.4 MB, free: 2.715 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.33e-06/0.4109, allocations: 0 / 492.4 MB, free: 2.715 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.179e-05/0.4109, allocations: 32 kB / 492.4 MB, free: 2.684 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.572e-06/0.4109, allocations: 7.938 kB / 492.4 MB, free: 2.676 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.4109, allocations: 0 / 492.4 MB, free: 2.676 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002382/0.4133, allocations: 1.327 MB / 493.7 MB, free: 1.324 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008096/0.4141, allocations: 419.2 kB / 494.1 MB, free: 0.9102 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002735/0.4144, allocations: 12 kB / 494.2 MB, free: 0.8984 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006468/0.415, allocations: 35.95 kB / 494.2 MB, free: 0.8633 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000173/0.4152, allocations: 59.88 kB / 494.3 MB, free: 0.8047 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.075e-05/0.4153, allocations: 47.97 kB / 494.3 MB, free: 0.7578 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.00267/0.418, allocations: 1.92 MB / 496.2 MB, free: 14.84 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.418, allocations: 0 / 496.2 MB, free: 14.84 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001361/0.4193, allocations: 0.593 MB / 496.8 MB, free: 14.25 MB / 414.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.003774/0.4231, allocations: 2.554 MB / 499.4 MB, free: 11.66 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001645/0.4247, allocations: 0.7739 MB / 0.4884 GB, free: 10.86 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.4247, allocations: 0 / 0.4884 GB, free: 10.86 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007524/0.4255, allocations: 428.1 kB / 0.4888 GB, free: 10.41 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001896/0.4274, allocations: 0.5179 MB / 0.4893 GB, free: 9.891 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0238/0.4512, allocations: 16.55 MB / 0.5055 GB, free: 8.809 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001242/0.4524, allocations: 1.669 MB / 0.5071 GB, free: 7.113 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001013/0.4535, allocations: 365.3 kB / 0.5075 GB, free: 6.75 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00132/0.4548, allocations: 1.226 MB / 0.5087 GB, free: 5.523 MB / 430.1 MB Notification: Performance of SimCode: time 1.012e-06/0.4548, allocations: 0 / 0.5087 GB, free: 5.523 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2841/0.7389, allocations: 62.07 MB / 0.5693 GB, free: 149.5 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.58/18.32, allocations: 2.688 kB / 0.5693 GB, free: 149.5 MB / 478.1 MB " [Timeout remaining time 641] (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_InvertersApartRecord_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_InvertersApartRecord.fmu > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/InvertersApartRecord/InvertersApartRecord.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.093236791028176]