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.001572/0.001572, allocations: 105.1 kB / 21.18 MB, free: 0.7656 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.002038/0.002038, allocations: 213.7 kB / 24.49 MB, free: 4.152 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.44/1.44, allocations: 230.5 MB / 258.1 MB, free: 7.969 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: translateModel(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") translateModel(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00191/0.00191, allocations: 60.05 kB / 379 MB, free: 2.582 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2322/0.2341, allocations: 53.41 MB / 432.4 MB, free: 6.918 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01554/0.2496, allocations: 14.78 MB / 447.2 MB, free: 8.078 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02529/0.2749, allocations: 20.79 MB / 468 MB, free: 3.207 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00233/0.2772, allocations: 130.6 kB / 468.1 MB, free: 3.078 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003307/0.2805, allocations: 1.243 MB / 469.4 MB, free: 1.828 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007196/0.2877, allocations: 2.366 MB / 471.7 MB, free: 15.44 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004634/0.2924, allocations: 1.465 MB / 473.2 MB, free: 13.98 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01106/0.3034, allocations: 6.603 MB / 479.8 MB, free: 7.352 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006825/0.3041, allocations: 273.7 kB / 480.1 MB, free: 7.055 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001747/0.3059, allocations: 1.147 MB / 481.2 MB, free: 5.902 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001575/0.3074, allocations: 1.122 MB / 482.3 MB, free: 4.773 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001813/0.3076, allocations: 76 kB / 482.4 MB, free: 4.699 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004061/0.3117, allocations: 1.471 MB / 483.9 MB, free: 3.227 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004014/0.3121, allocations: 325.6 kB / 484.2 MB, free: 2.906 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001639/0.3137, allocations: 1.378 MB / 485.6 MB, free: 1.52 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005964/0.3197, allocations: 3.791 MB / 489.4 MB, free: 13.71 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.3197, allocations: 0 / 489.4 MB, free: 13.71 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.893e-06/0.3197, allocations: 4 kB / 489.4 MB, free: 13.71 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.065e-05/0.3198, allocations: 0 / 489.4 MB, free: 13.71 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.005955/0.3257, allocations: 3.726 MB / 493.1 MB, free: 9.922 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.264e-05/0.3258, allocations: 12.03 kB / 493.1 MB, free: 9.91 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004887/0.3262, allocations: 417.4 kB / 493.5 MB, free: 9.5 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003823/0.3301, allocations: 2.295 MB / 495.8 MB, free: 7.109 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.844e-05/0.3301, allocations: 33 kB / 495.9 MB, free: 7.074 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001296/0.3302, allocations: 52 kB / 495.9 MB, free: 7.023 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001413/0.3316, allocations: 0.7343 MB / 496.6 MB, free: 6.285 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.594e-05/0.3317, allocations: 4 kB / 496.6 MB, free: 6.281 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.87e-05/0.3317, allocations: 20 kB / 496.7 MB, free: 6.262 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.228e-05/0.3318, allocations: 19.98 kB / 496.7 MB, free: 6.242 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001634/0.3334, allocations: 0.8241 MB / 497.5 MB, free: 5.414 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005334/0.3387, allocations: 2.999 MB / 0.4888 GB, free: 2.344 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001159/0.3399, allocations: 0.5164 MB / 0.4893 GB, free: 1.82 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001007/0.3409, allocations: 0.5653 MB / 0.4898 GB, free: 1.25 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02603/0.3669, allocations: 13.79 MB / 0.5033 GB, free: 3.074 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007837/0.3677, allocations: 361.6 kB / 0.5036 GB, free: 2.707 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 3.487e-06/0.3677, allocations: 0 / 0.5036 GB, free: 2.707 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.00237/0.3701, allocations: 1.103 MB / 0.5047 GB, free: 1.602 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.143e-05/0.3701, allocations: 67.39 kB / 0.5048 GB, free: 1.523 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003543/0.3737, allocations: 2.939 MB / 0.5077 GB, free: 14.57 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 5.773e-05/0.3737, allocations: 29.7 kB / 0.5077 GB, free: 14.54 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001386/0.3751, allocations: 1.502 MB / 0.5091 GB, free: 13.03 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001765/0.3753, allocations: 174.5 kB / 0.5093 GB, free: 12.86 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003073/0.3756, allocations: 234.3 kB / 0.5095 GB, free: 12.62 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001638/0.3758, allocations: 337.9 kB / 0.5099 GB, free: 12.29 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006075/0.3764, allocations: 241.9 kB / 0.5101 GB, free: 12.05 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008595/0.3772, allocations: 0.6018 MB / 0.5107 GB, free: 11.27 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001477/0.3787, allocations: 0.8896 MB / 0.5115 GB, free: 10.2 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.129e-05/0.3787, allocations: 11.94 kB / 0.5116 GB, free: 10.19 MB / 430.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002325/0.381, allocations: 1.239 MB / 0.5128 GB, free: 8.945 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.449e-05/0.3811, allocations: 16.23 kB / 0.5128 GB, free: 8.93 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001165/0.3812, allocations: 80 kB / 0.5129 GB, free: 8.852 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.065e-05/0.3812, allocations: 20 kB / 0.5129 GB, free: 8.832 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007273/0.3819, allocations: 207.6 kB / 0.5131 GB, free: 8.629 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.877e-05/0.382, allocations: 23.92 kB / 0.5131 GB, free: 8.605 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000989/0.383, allocations: 107.3 kB / 0.5132 GB, free: 8.5 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001109/0.3831, allocations: 68 kB / 0.5133 GB, free: 8.434 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.0007926/0.3839, allocations: 440.5 kB / 0.5137 GB, free: 7.996 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004093/0.3843, allocations: 397.5 kB / 0.5141 GB, free: 7.605 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00264/0.3869, allocations: 1.19 MB / 0.5152 GB, free: 6.41 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.326e-06/0.3869, allocations: 4 kB / 0.5152 GB, free: 6.406 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.097e-06/0.3869, allocations: 0 / 0.5152 GB, free: 6.406 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.093e-06/0.3869, allocations: 3.984 kB / 0.5152 GB, free: 6.402 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003606/0.3905, allocations: 2.08 MB / 0.5173 GB, free: 4.258 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001062/0.3907, allocations: 68 kB / 0.5173 GB, free: 4.191 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004896/0.3911, allocations: 91.84 kB / 0.5174 GB, free: 4.102 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.354e-06/0.3911, allocations: 8.062 kB / 0.5174 GB, free: 4.094 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.917e-05/0.3912, allocations: 32 kB / 0.5175 GB, free: 4.062 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.997e-06/0.3912, allocations: 0 / 0.5175 GB, free: 4.062 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.527e-06/0.3912, allocations: 7.938 kB / 0.5175 GB, free: 4.055 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002465/0.3937, allocations: 1.311 MB / 0.5187 GB, free: 2.719 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009781/0.3947, allocations: 423.1 kB / 0.5191 GB, free: 2.305 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002936/0.395, allocations: 16.06 kB / 0.5192 GB, free: 2.289 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006761/0.3956, allocations: 27.97 kB / 0.5192 GB, free: 2.262 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001635/0.3958, allocations: 67.86 kB / 0.5193 GB, free: 2.195 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.243e-05/0.3959, allocations: 39.94 kB / 0.5193 GB, free: 2.156 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002645/0.3985, allocations: 1.903 MB / 0.5212 GB, free: 260 kB / 430.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3985, allocations: 4 kB / 0.5212 GB, free: 256 kB / 430.1 MB Notification: Performance of remove unused functions: time 0.001462/0.4, allocations: 0.5854 MB / 0.5217 GB, free: 15.66 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.001162/0.4011, allocations: 0.7846 MB / 0.5225 GB, free: 14.87 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001684/0.4028, allocations: 0.7674 MB / 0.5232 GB, free: 14.07 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.849e-06/0.4028, allocations: 3.938 kB / 0.5232 GB, free: 14.07 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008043/0.4036, allocations: 427.2 kB / 0.5237 GB, free: 13.63 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00272/0.4063, allocations: 0.6058 MB / 0.5242 GB, free: 13.02 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007744/0.4141, allocations: 4.458 MB / 0.5286 GB, free: 8.512 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001696/0.4158, allocations: 1.668 MB / 0.5302 GB, free: 6.812 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003914/0.4162, allocations: 151.4 kB / 0.5304 GB, free: 6.664 MB / 446.1 MB Notification: Performance of SimCode: time 7.92e-07/0.4162, allocations: 0 / 0.5304 GB, free: 6.664 MB / 446.1 MB Notification: Performance of Templates: time 0.2346/0.6507, allocations: 37.75 MB / 0.5672 GB, free: 80.75 MB / 446.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.makefile [Timeout 660] (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 & ./Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) [Timeout 480] 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 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.34192782198079]