Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.OvervoltageProtection,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|CL.v",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection") translateModel(Modelica.Electrical.Analog.Examples.OvervoltageProtection,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|CL.v",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001376/0.001375, allocations: 100.6 kB / 17.93 MB, free: 5.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001459/0.001459, allocations: 193.8 kB / 18.86 MB, free: 4.484 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.467/1.467, allocations: 205.1 MB / 224.7 MB, free: 12.43 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001147/0.001147, allocations: 55.92 kB / 280.8 MB, free: 3.484 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08747/0.08863, allocations: 46.63 MB / 327.4 MB, free: 4.789 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.003768/0.09244, allocations: 2.71 MB / 330.1 MB, free: 2.055 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001052/0.09352, allocations: 0.7021 MB / 330.8 MB, free: 1.344 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001089/0.09365, allocations: 7.938 kB / 330.9 MB, free: 1.336 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001345/0.09381, allocations: 35.75 kB / 330.9 MB, free: 1.301 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001269/0.09395, allocations: 63.47 kB / 331 MB, free: 1.238 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000255/0.09421, allocations: 83.84 kB / 331 MB, free: 1.156 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003335/0.09455, allocations: 362.5 kB / 331.4 MB, free: 0.8008 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001829/0.09474, allocations: 84.7 kB / 331.5 MB, free: 0.7227 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001866/0.09494, allocations: 143.6 kB / 331.6 MB, free: 0.582 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001773/0.09513, allocations: 167.3 kB / 331.8 MB, free: 428 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.419e-05/0.09518, allocations: 28 kB / 331.8 MB, free: 400 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.592e-05/0.09523, allocations: 32 kB / 331.8 MB, free: 368 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 6.333e-05/0.0953, allocations: 67.75 kB / 331.9 MB, free: 300 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001208/0.09542, allocations: 139.4 kB / 332 MB, free: 160 kB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002553/0.09569, allocations: 251.7 kB / 332.3 MB, free: 15.91 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.0957, allocations: 4 kB / 332.3 MB, free: 15.9 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.09571, allocations: 0 / 332.3 MB, free: 15.9 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.819e-06/0.09572, allocations: 0 / 332.3 MB, free: 15.9 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.00146/0.09719, allocations: 0.6508 MB / 332.9 MB, free: 15.21 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.029e-05/0.09724, allocations: 12.03 kB / 332.9 MB, free: 15.2 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.7e-05/0.09732, allocations: 28.56 kB / 333 MB, free: 15.17 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002854/0.09761, allocations: 252.8 kB / 333.2 MB, free: 14.88 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.246e-05/0.09764, allocations: 16.8 kB / 333.2 MB, free: 14.86 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.96e-05/0.0977, allocations: 24.38 kB / 333.3 MB, free: 14.84 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000643/0.09835, allocations: 294.9 kB / 333.5 MB, free: 14.54 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.272e-05/0.09837, allocations: 3.984 kB / 333.6 MB, free: 14.53 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.199e-05/0.09841, allocations: 12 kB / 333.6 MB, free: 14.52 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.334e-06/0.09842, allocations: 7.938 kB / 333.6 MB, free: 14.51 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007342/0.09916, allocations: 265.6 kB / 333.8 MB, free: 14.25 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001632/0.1008, allocations: 1.069 MB / 334.9 MB, free: 13.11 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001881/0.1027, allocations: 438.3 kB / 335.3 MB, free: 12.67 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003792/0.1031, allocations: 144.8 kB / 335.5 MB, free: 12.53 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.268e-05/0.1031, allocations: 3.938 kB / 335.5 MB, free: 12.52 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.668e-05/0.1032, allocations: 42.48 kB / 335.5 MB, free: 12.47 MB / 286.1 MB Notification: Performance of pre-optimization done (n=14): time 1.583e-06/0.1032, allocations: 4 kB / 335.5 MB, free: 12.47 MB / 286.1 MB Notification: Performance of matching and sorting (n=14): time 0.00502/0.1082, allocations: 1.022 MB / 336.5 MB, free: 11.42 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.607e-05/0.1083, allocations: 51.41 kB / 336.6 MB, free: 11.36 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002345/0.1085, allocations: 216.1 kB / 336.8 MB, free: 11.13 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.142e-05/0.1085, allocations: 29.7 kB / 336.8 MB, free: 11.09 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001077/0.1086, allocations: 160 kB / 337 MB, free: 10.93 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.055e-05/0.1087, allocations: 51.25 kB / 337 MB, free: 10.88 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.327e-05/0.1088, allocations: 41.7 kB / 337.1 MB, free: 10.84 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.000144/0.1089, allocations: 330.8 kB / 337.4 MB, free: 10.5 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003349/0.1093, allocations: 99.94 kB / 337.5 MB, free: 10.41 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000338/0.1096, allocations: 129.6 kB / 337.6 MB, free: 10.27 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006474/0.1103, allocations: 224.7 kB / 337.8 MB, free: 10.05 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.524e-06/0.1103, allocations: 0 / 337.8 MB, free: 10.05 MB / 286.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.002942/0.1133, allocations: 0.6383 MB / 338.5 MB, free: 9.402 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.176e-05/0.1133, allocations: 8 kB / 338.5 MB, free: 9.395 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.642e-06/0.1133, allocations: 0 / 338.5 MB, free: 9.395 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007394/0.1141, allocations: 220.7 kB / 338.7 MB, free: 9.176 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001769/0.1142, allocations: 39.91 kB / 338.7 MB, free: 9.137 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007123/0.1214, allocations: 2.75 MB / 341.5 MB, free: 6.246 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003153/0.1217, allocations: 31.91 kB / 341.5 MB, free: 6.215 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.173e-05/0.1217, allocations: 4.062 kB / 341.5 MB, free: 6.211 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0001739/0.1219, allocations: 149.7 kB / 341.7 MB, free: 6.055 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.25e-05/0.122, allocations: 19.72 kB / 341.7 MB, free: 6.035 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.854e-05/0.122, allocations: 21.52 kB / 341.7 MB, free: 6.012 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.35e-06/0.1221, allocations: 4 kB / 341.7 MB, free: 6.008 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.925e-06/0.1221, allocations: 3.938 kB / 341.7 MB, free: 6.004 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.1221, allocations: 0 / 341.7 MB, free: 6.004 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003614/0.1224, allocations: 325.4 kB / 342 MB, free: 5.637 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.236e-06/0.1224, allocations: 0 / 342 MB, free: 5.637 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001617/0.1226, allocations: 39.91 kB / 342.1 MB, free: 5.598 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006428/0.1233, allocations: 216.7 kB / 342.3 MB, free: 5.383 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.913e-05/0.1233, allocations: 0 / 342.3 MB, free: 5.383 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006653/0.13, allocations: 2.739 MB / 345 MB, free: 2.504 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.537e-06/0.13, allocations: 3.984 kB / 345 MB, free: 2.5 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00329/0.1333, allocations: 0.8515 MB / 345.9 MB, free: 1.629 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.609e-05/0.1334, allocations: 100.9 kB / 346 MB, free: 1.512 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.701e-05/0.1334, allocations: 0 / 346 MB, free: 1.512 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002966/0.1337, allocations: 36.03 kB / 346 MB, free: 1.477 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.331e-05/0.1338, allocations: 7.984 kB / 346 MB, free: 1.469 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.877e-05/0.1338, allocations: 7.984 kB / 346 MB, free: 1.461 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001361/0.134, allocations: 161.6 kB / 346.2 MB, free: 1.305 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.134, allocations: 0 / 346.2 MB, free: 1.305 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004679/0.1345, allocations: 75.84 kB / 346.3 MB, free: 1.23 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (CL.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001395/0.1346, allocations: 107.2 kB / 346.4 MB, free: 1.113 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001619/0.1362, allocations: 454.2 kB / 346.8 MB, free: 0.6562 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.1362, allocations: 0 / 346.8 MB, free: 0.6562 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001089/0.1373, allocations: 334.6 kB / 347.1 MB, free: 324 kB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003869/0.1377, allocations: 28.59 kB / 347.2 MB, free: 296 kB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001452/0.1392, allocations: 0.6633 MB / 347.8 MB, free: 15.6 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003202/0.1395, allocations: 0.7437 MB / 348.6 MB, free: 14.83 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.336e-05/0.1396, allocations: 19.44 kB / 348.6 MB, free: 14.81 MB / 302.1 MB Notification: Performance of SimCode: time 8.42e-07/0.1396, allocations: 0 / 348.6 MB, free: 14.81 MB / 302.1 MB Notification: Performance of Templates: time 0.006375/0.146, allocations: 4.091 MB / 352.7 MB, free: 10.71 MB / 302.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/OvervoltageProtection/OvervoltageProtection.csv","../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches