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.001647/0.001647, allocations: 112.2 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.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.00183/0.00183, allocations: 206.1 kB / 24.52 MB, free: 4.156 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.343/1.343, allocations: 230.6 MB / 258.3 MB, free: 8.027 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.001738/0.001738, allocations: 47.92 kB / 378.6 MB, free: 3.141 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2472/0.249, allocations: 53.36 MB / 431.9 MB, free: 6.859 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01515/0.2641, allocations: 14.78 MB / 446.7 MB, free: 8.016 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02694/0.291, allocations: 20.78 MB / 467.5 MB, free: 3.156 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002209/0.2933, allocations: 134.6 kB / 467.6 MB, free: 3.023 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003572/0.2968, allocations: 1.247 MB / 468.9 MB, free: 1.77 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007717/0.3045, allocations: 2.367 MB / 471.2 MB, free: 15.38 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004583/0.3091, allocations: 1.457 MB / 472.7 MB, free: 13.93 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01039/0.3195, allocations: 6.607 MB / 479.3 MB, free: 7.297 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006231/0.3201, allocations: 277.7 kB / 479.6 MB, free: 6.996 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001652/0.3218, allocations: 1.139 MB / 480.7 MB, free: 5.852 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001472/0.3233, allocations: 1.122 MB / 481.8 MB, free: 4.723 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001653/0.3234, allocations: 72 kB / 481.9 MB, free: 4.652 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004136/0.3276, allocations: 1.479 MB / 483.4 MB, free: 3.172 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003121/0.3279, allocations: 329.6 kB / 483.7 MB, free: 2.848 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001277/0.3292, allocations: 1.366 MB / 485.1 MB, free: 1.473 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004783/0.3339, allocations: 3.795 MB / 488.9 MB, free: 13.66 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.3339, allocations: 0 / 488.9 MB, free: 13.66 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.3339, allocations: 0 / 488.9 MB, free: 13.66 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.507e-05/0.334, allocations: 4 kB / 488.9 MB, free: 13.66 MB / 398.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.005173/0.3392, allocations: 3.73 MB / 492.6 MB, free: 9.867 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.828e-05/0.3392, allocations: 8.031 kB / 492.6 MB, free: 9.859 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.494e-05/0.3392, allocations: 13 kB / 492.6 MB, free: 9.848 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001132/0.3394, allocations: 98.5 kB / 492.7 MB, free: 9.742 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004127/0.3398, allocations: 413.4 kB / 493.1 MB, free: 9.336 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00335/0.3431, allocations: 2.303 MB / 495.4 MB, free: 6.934 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.506e-05/0.3432, allocations: 41 kB / 495.4 MB, free: 6.895 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001171/0.3433, allocations: 48 kB / 495.5 MB, free: 6.848 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001326/0.3446, allocations: 0.7421 MB / 496.2 MB, free: 6.102 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.658e-05/0.3446, allocations: 3.984 kB / 496.2 MB, free: 6.098 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.738e-05/0.3447, allocations: 16 kB / 496.3 MB, free: 6.082 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.333e-05/0.3447, allocations: 23.98 kB / 496.3 MB, free: 6.059 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001589/0.3463, allocations: 0.8202 MB / 497.1 MB, free: 5.234 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004906/0.3512, allocations: 3.003 MB / 0.4884 GB, free: 2.164 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001161/0.3524, allocations: 0.5125 MB / 0.4889 GB, free: 1.641 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009561/0.3533, allocations: 0.5653 MB / 0.4894 GB, free: 1.066 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0257/0.379, allocations: 13.79 MB / 0.5029 GB, free: 2.891 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007923/0.3798, allocations: 357.7 kB / 0.5032 GB, free: 2.527 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 2.845e-06/0.3798, allocations: 4 kB / 0.5032 GB, free: 2.523 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.002474/0.3823, allocations: 1.107 MB / 0.5043 GB, free: 1.41 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.729e-05/0.3823, allocations: 63.34 kB / 0.5044 GB, free: 1.336 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003825/0.3862, allocations: 2.935 MB / 0.5073 GB, free: 14.39 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 7.463e-05/0.3862, allocations: 37.7 kB / 0.5073 GB, free: 14.35 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001321/0.3876, allocations: 1.491 MB / 0.5087 GB, free: 12.85 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001836/0.3878, allocations: 182.5 kB / 0.5089 GB, free: 12.67 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003089/0.3881, allocations: 226.4 kB / 0.5091 GB, free: 12.44 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001575/0.3882, allocations: 349.9 kB / 0.5095 GB, free: 12.09 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005763/0.3888, allocations: 237.9 kB / 0.5097 GB, free: 11.86 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000862/0.3897, allocations: 0.5979 MB / 0.5103 GB, free: 11.09 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001473/0.3911, allocations: 0.8974 MB / 0.5112 GB, free: 10.02 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.849e-06/0.3911, allocations: 8 kB / 0.5112 GB, free: 10.01 MB / 430.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.00217/0.3933, allocations: 1.243 MB / 0.5124 GB, free: 8.762 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.558e-05/0.3933, allocations: 12 kB / 0.5124 GB, free: 8.75 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001163/0.3935, allocations: 83.98 kB / 0.5125 GB, free: 8.668 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.291e-05/0.3935, allocations: 16 kB / 0.5125 GB, free: 8.652 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007045/0.3942, allocations: 203.6 kB / 0.5127 GB, free: 8.453 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.553e-05/0.3942, allocations: 23.92 kB / 0.5127 GB, free: 8.43 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009228/0.3951, allocations: 115.5 kB / 0.5128 GB, free: 8.316 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001054/0.3952, allocations: 68 kB / 0.5129 GB, free: 8.25 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.0006662/0.3959, allocations: 431 kB / 0.5133 GB, free: 7.82 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003744/0.3963, allocations: 401.5 kB / 0.5137 GB, free: 7.426 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002521/0.3988, allocations: 1.19 MB / 0.5148 GB, free: 6.23 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.924e-06/0.3988, allocations: 4 kB / 0.5148 GB, free: 6.227 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.088e-06/0.3988, allocations: 4 kB / 0.5148 GB, free: 6.223 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.744e-06/0.3988, allocations: 7.969 kB / 0.5148 GB, free: 6.215 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003301/0.4021, allocations: 2.076 MB / 0.5169 GB, free: 4.074 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.962e-05/0.4022, allocations: 68 kB / 0.5169 GB, free: 4.008 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004776/0.4027, allocations: 95.92 kB / 0.517 GB, free: 3.914 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.32e-06/0.4027, allocations: 0 / 0.517 GB, free: 3.914 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.304e-05/0.4028, allocations: 35.98 kB / 0.5171 GB, free: 3.879 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.023e-06/0.4028, allocations: 7.984 kB / 0.5171 GB, free: 3.871 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.4028, allocations: 0 / 0.5171 GB, free: 3.871 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002308/0.4051, allocations: 1.311 MB / 0.5184 GB, free: 2.535 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007483/0.4058, allocations: 419.2 kB / 0.5188 GB, free: 2.125 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000271/0.4061, allocations: 11.98 kB / 0.5188 GB, free: 2.113 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006329/0.4067, allocations: 31.97 kB / 0.5188 GB, free: 2.082 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001482/0.4069, allocations: 67.8 kB / 0.5189 GB, free: 2.016 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.89e-05/0.407, allocations: 36 kB / 0.5189 GB, free: 1.98 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002402/0.4094, allocations: 1.907 MB / 0.5208 GB, free: 76 kB / 430.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4094, allocations: 0 / 0.5208 GB, free: 76 kB / 430.1 MB Notification: Performance of remove unused functions: time 0.001316/0.4107, allocations: 0.5931 MB / 0.5213 GB, free: 15.48 MB / 446.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.003627/0.4143, allocations: 2.539 MB / 0.5238 GB, free: 12.91 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001606/0.4159, allocations: 0.7752 MB / 0.5246 GB, free: 12.11 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.4159, allocations: 0 / 0.5246 GB, free: 12.11 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007576/0.4167, allocations: 435.3 kB / 0.525 GB, free: 11.66 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002382/0.419, allocations: 0.6153 MB / 0.5256 GB, free: 11.04 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1987/0.6177, allocations: 16.44 MB / 0.5416 GB, free: 101.4 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001043/0.6187, allocations: 1.664 MB / 0.5433 GB, free: 100.7 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0008702/0.6196, allocations: 361.8 kB / 0.5436 GB, free: 100.7 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008132/0.6204, allocations: 1.215 MB / 0.5448 GB, free: 99.74 MB / 446.1 MB Notification: Performance of SimCode: time 1.442e-06/0.6204, allocations: 0 / 0.5448 GB, free: 99.74 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08591/0.7063, allocations: 61.73 MB / 0.6051 GB, free: 43.63 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.59/18.29, allocations: 18.77 kB / 0.6051 GB, free: 43.61 MB / 446.1 MB " [Timeout remaining time 642] (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: 22.014179007033817]