Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OvervoltageProtection.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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.Analog.Examples.OvervoltageProtection,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|CL.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.OvervoltageProtection") translateModel(Modelica.Electrical.Analog.Examples.OvervoltageProtection,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|CL.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.OvervoltageProtection") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009181/0.0009179, allocations: 102 kB / 16.99 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009429/0.0009431, allocations: 204.4 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.424/1.424, allocations: 227.2 MB / 245.9 MB, free: 10.34 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002878/0.0002878, allocations: 8 kB / 306.6 MB, free: 1.422 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1215/0.1218, allocations: 51.49 MB / 358.1 MB, free: 13.92 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.002694/0.1245, allocations: 2.174 MB / 360.2 MB, free: 11.73 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001081/0.1256, allocations: 0.6978 MB / 360.9 MB, free: 11.03 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001045/0.1258, allocations: 4 kB / 360.9 MB, free: 11.03 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 6.366e-05/0.1258, allocations: 35.75 kB / 361 MB, free: 10.99 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001737/0.126, allocations: 91.72 kB / 361.1 MB, free: 10.9 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000255/0.1263, allocations: 87.77 kB / 361.1 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002725/0.1266, allocations: 231.5 kB / 361.4 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001689/0.1267, allocations: 76.08 kB / 361.5 MB, free: 10.52 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002001/0.127, allocations: 119.6 kB / 361.6 MB, free: 10.4 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001649/0.1271, allocations: 139.5 kB / 361.7 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.203e-05/0.1272, allocations: 16 kB / 361.7 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.199e-05/0.1272, allocations: 16 kB / 361.7 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.963e-05/0.1273, allocations: 59.73 kB / 361.8 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.151e-05/0.1274, allocations: 69.58 kB / 361.9 MB, free: 10.1 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002386/0.1276, allocations: 251.6 kB / 362.1 MB, free: 9.855 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.886e-06/0.1276, allocations: 3.938 kB / 362.1 MB, free: 9.852 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.1276, allocations: 0 / 362.1 MB, free: 9.852 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.424e-06/0.1276, allocations: 0 / 362.1 MB, free: 9.852 MB / 302.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.001314/0.129, allocations: 0.6158 MB / 362.7 MB, free: 9.188 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.391e-05/0.129, allocations: 8.031 kB / 362.7 MB, free: 9.18 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000196/0.1292, allocations: 39.7 kB / 362.8 MB, free: 9.141 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002866/0.1295, allocations: 251.5 kB / 363 MB, free: 8.852 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.656e-05/0.1295, allocations: 12.44 kB / 363 MB, free: 8.84 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.532e-05/0.1296, allocations: 20 kB / 363 MB, free: 8.82 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006253/0.1302, allocations: 310.5 kB / 363.4 MB, free: 8.5 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.486e-06/0.1302, allocations: 0 / 363.4 MB, free: 8.5 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.945e-05/0.1303, allocations: 16 kB / 363.4 MB, free: 8.484 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.275e-06/0.1303, allocations: 4 kB / 363.4 MB, free: 8.48 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007329/0.131, allocations: 281.6 kB / 363.6 MB, free: 8.203 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001613/0.1327, allocations: 1.077 MB / 364.7 MB, free: 7.047 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00188/0.1345, allocations: 482.3 kB / 365.2 MB, free: 6.566 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.809e-05/0.1346, allocations: 4 kB / 365.2 MB, free: 6.562 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.998e-05/0.1346, allocations: 38.55 kB / 365.2 MB, free: 6.516 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 1.263e-06/0.1346, allocations: 0 / 365.2 MB, free: 6.516 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.004828/0.1395, allocations: 1.12 MB / 366.4 MB, free: 5.367 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.892e-05/0.1395, allocations: 59.33 kB / 366.4 MB, free: 5.297 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000329/0.1399, allocations: 220.2 kB / 366.6 MB, free: 5.066 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.866e-05/0.1399, allocations: 25.7 kB / 366.7 MB, free: 5.035 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001252/0.1401, allocations: 164 kB / 366.8 MB, free: 4.871 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.136e-05/0.1401, allocations: 47.36 kB / 366.9 MB, free: 4.824 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.189e-05/0.1401, allocations: 0 / 366.9 MB, free: 4.824 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000125/0.1403, allocations: 330.8 kB / 367.2 MB, free: 4.492 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000333/0.1406, allocations: 119.8 kB / 367.3 MB, free: 4.375 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003405/0.1409, allocations: 133.6 kB / 367.4 MB, free: 4.238 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000349/0.1413, allocations: 118.5 kB / 367.5 MB, free: 4.125 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.885e-06/0.1413, allocations: 4 kB / 367.6 MB, free: 4.121 MB / 302.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.002856/0.1442, allocations: 0.693 MB / 368.2 MB, free: 3.418 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.177e-05/0.1442, allocations: 4 kB / 368.2 MB, free: 3.414 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.231e-05/0.1443, allocations: 7.922 kB / 368.3 MB, free: 3.406 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000805/0.1451, allocations: 232.7 kB / 368.5 MB, free: 3.176 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001883/0.1453, allocations: 35.92 kB / 368.5 MB, free: 3.141 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007029/0.1523, allocations: 2.689 MB / 371.2 MB, free: 324 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003099/0.1526, allocations: 43.97 kB / 371.3 MB, free: 280 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.954e-05/0.1527, allocations: 4 kB / 371.3 MB, free: 276 kB / 302.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0002022/0.1529, allocations: 133.8 kB / 371.4 MB, free: 132 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.039e-05/0.1529, allocations: 15.81 kB / 371.4 MB, free: 116 kB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.261e-05/0.153, allocations: 21.53 kB / 371.4 MB, free: 96 kB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-06/0.153, allocations: 4 kB / 371.4 MB, free: 92 kB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.114e-06/0.153, allocations: 7.953 kB / 371.4 MB, free: 84 kB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.843e-06/0.1531, allocations: 3.984 kB / 371.4 MB, free: 80 kB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2161/0.3691, allocations: 319.7 kB / 371.7 MB, free: 19.57 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.217e-06/0.3692, allocations: 0 / 371.7 MB, free: 19.57 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002158/0.3694, allocations: 31.47 kB / 371.8 MB, free: 19.57 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008122/0.3702, allocations: 234.3 kB / 372 MB, free: 19.57 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.726e-05/0.3703, allocations: 5.234 kB / 372 MB, free: 19.57 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006967/0.3772, allocations: 2.677 MB / 374.7 MB, free: 18.25 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.835e-06/0.3773, allocations: 5.109 kB / 374.7 MB, free: 18.25 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003515/0.3808, allocations: 0.9084 MB / 375.6 MB, free: 18.11 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.779e-05/0.3809, allocations: 100.3 kB / 375.7 MB, free: 18.02 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.719e-05/0.3809, allocations: 3.562 kB / 375.7 MB, free: 18.02 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003233/0.3813, allocations: 41.91 kB / 375.7 MB, free: 18.02 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.877e-05/0.3813, allocations: 16.2 kB / 375.8 MB, free: 18.01 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.399e-05/0.3814, allocations: 7.234 kB / 375.8 MB, free: 18.01 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001955/0.3816, allocations: 157.4 kB / 375.9 MB, free: 17.93 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.41e-07/0.3816, allocations: 0 / 375.9 MB, free: 17.93 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005171/0.3821, allocations: 77.8 kB / 376 MB, free: 17.93 MB / 302.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.000158/0.3823, allocations: 103.3 kB / 376.1 MB, free: 17.85 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001691/0.384, allocations: 470.9 kB / 376.6 MB, free: 17.73 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.568e-06/0.384, allocations: 0 / 376.6 MB, free: 17.73 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001109/0.3851, allocations: 351.9 kB / 376.9 MB, free: 17.61 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003003/0.3854, allocations: 35.28 kB / 376.9 MB, free: 17.61 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001443/0.3869, allocations: 0.6712 MB / 377.6 MB, free: 17.25 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000241/0.3871, allocations: 0.7507 MB / 378.4 MB, free: 16.55 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.452e-05/0.3872, allocations: 15.94 kB / 378.4 MB, free: 16.55 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.944e-05/0.3872, allocations: 14.19 kB / 378.4 MB, free: 16.55 MB / 302.1 MB Notification: Performance of SimCode: time 3.61e-07/0.3873, allocations: 5.062 kB / 378.4 MB, free: 16.54 MB / 302.1 MB Notification: Performance of Templates: time 0.01052/0.3978, allocations: 4.454 MB / 382.8 MB, free: 16.04 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OvervoltageProtection.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OvervoltageProtection.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.OvervoltageProtection -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.OvervoltageProtection_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OvervoltageProtection/OvervoltageProtection.csv","../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OvervoltageProtection.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches