Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection") translateModel(Modelica.Electrical.Analog.Examples.OvervoltageProtection,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|CL.v",fileNamePrefix="Modelica_4.0.0_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.001296/0.001296, allocations: 104.2 kB / 17.59 MB, free: 5.559 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.001219/0.001219, allocations: 191.4 kB / 18.51 MB, free: 4.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.32/1.32, allocations: 222.9 MB / 242.2 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001146/0.001146, allocations: 56.73 kB / 301.3 MB, free: 5.887 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09248/0.09365, allocations: 49.43 MB / 350.7 MB, free: 4.449 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.004412/0.09811, allocations: 2.699 MB / 353.4 MB, free: 1.727 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001328/0.09947, allocations: 0.6661 MB / 354.1 MB, free: 1.055 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002081/0.0997, allocations: 4 kB / 354.1 MB, free: 1.051 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001784/0.09989, allocations: 47.56 kB / 354.1 MB, free: 1.004 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002365/0.1002, allocations: 75.28 kB / 354.2 MB, free: 0.9297 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003607/0.1005, allocations: 103.8 kB / 354.3 MB, free: 0.8281 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004437/0.101, allocations: 358.5 kB / 354.7 MB, free: 488 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002272/0.1012, allocations: 96.67 kB / 354.8 MB, free: 388 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002509/0.1015, allocations: 139.5 kB / 354.9 MB, free: 248 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002254/0.1017, allocations: 155.4 kB / 355 MB, free: 92 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.27e-05/0.1018, allocations: 28 kB / 355.1 MB, free: 64 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.815e-05/0.1019, allocations: 32 kB / 355.1 MB, free: 32 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.535e-05/0.102, allocations: 75.73 kB / 355.2 MB, free: 15.96 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001566/0.1021, allocations: 147.2 kB / 355.3 MB, free: 15.81 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003421/0.1025, allocations: 339.1 kB / 355.7 MB, free: 15.48 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.88e-06/0.1025, allocations: 0 / 355.7 MB, free: 15.48 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.243e-06/0.1025, allocations: 4 kB / 355.7 MB, free: 15.48 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.787e-06/0.1025, allocations: 0 / 355.7 MB, free: 15.48 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.001548/0.1041, allocations: 0.6354 MB / 356.3 MB, free: 14.79 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.38e-05/0.1041, allocations: 12.03 kB / 356.3 MB, free: 14.78 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.28e-05/0.1042, allocations: 28.56 kB / 356.3 MB, free: 14.75 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003215/0.1046, allocations: 256.7 kB / 356.6 MB, free: 14.46 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.966e-05/0.1046, allocations: 16.81 kB / 356.6 MB, free: 14.45 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.12e-05/0.1046, allocations: 28.31 kB / 356.6 MB, free: 14.42 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006773/0.1053, allocations: 298.9 kB / 356.9 MB, free: 14.12 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.165e-05/0.1054, allocations: 0 / 356.9 MB, free: 14.12 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.302e-05/0.1054, allocations: 16 kB / 356.9 MB, free: 14.1 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.793e-05/0.1054, allocations: 4 kB / 356.9 MB, free: 14.1 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007871/0.1062, allocations: 269.5 kB / 357.2 MB, free: 13.83 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001727/0.108, allocations: 1.066 MB / 358.3 MB, free: 12.68 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001945/0.1099, allocations: 446.3 kB / 358.7 MB, free: 12.24 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004031/0.1103, allocations: 140.8 kB / 358.8 MB, free: 12.1 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.546e-05/0.1104, allocations: 3.938 kB / 358.8 MB, free: 12.09 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.967e-05/0.1104, allocations: 42.56 kB / 358.9 MB, free: 12.04 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 2.124e-06/0.1104, allocations: 0 / 358.9 MB, free: 12.04 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.004935/0.1154, allocations: 1.014 MB / 359.9 MB, free: 11 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.874e-05/0.1154, allocations: 59.34 kB / 360 MB, free: 10.93 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002308/0.1157, allocations: 216.1 kB / 360.2 MB, free: 10.71 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.79e-05/0.1157, allocations: 25.7 kB / 360.2 MB, free: 10.68 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001031/0.1158, allocations: 164.1 kB / 360.4 MB, free: 10.51 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.492e-05/0.1159, allocations: 55.25 kB / 360.4 MB, free: 10.46 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.526e-05/0.116, allocations: 33.7 kB / 360.4 MB, free: 10.42 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001819/0.1162, allocations: 330.8 kB / 360.8 MB, free: 10.09 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003495/0.1165, allocations: 107.9 kB / 360.9 MB, free: 9.98 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003761/0.1169, allocations: 121.6 kB / 361 MB, free: 9.855 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006783/0.1176, allocations: 224.1 kB / 361.2 MB, free: 9.633 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.016e-06/0.1176, allocations: 4 kB / 361.2 MB, free: 9.629 MB / 302.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.002932/0.1205, allocations: 0.6305 MB / 361.8 MB, free: 8.988 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.351e-05/0.1206, allocations: 8 kB / 361.8 MB, free: 8.98 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.833e-06/0.1206, allocations: 3.938 kB / 361.9 MB, free: 8.977 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007296/0.1213, allocations: 220.6 kB / 362.1 MB, free: 8.758 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000174/0.1215, allocations: 35.97 kB / 362.1 MB, free: 8.723 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007082/0.1286, allocations: 2.754 MB / 364.9 MB, free: 5.832 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003263/0.129, allocations: 39.97 kB / 364.9 MB, free: 5.793 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.588e-05/0.129, allocations: 4 kB / 364.9 MB, free: 5.789 MB / 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 (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.0001805/0.1292, allocations: 150.1 kB / 365 MB, free: 5.633 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.594e-05/0.1293, allocations: 19.72 kB / 365.1 MB, free: 5.613 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.005e-05/0.1293, allocations: 21.53 kB / 365.1 MB, free: 5.59 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.797e-06/0.1293, allocations: 4 kB / 365.1 MB, free: 5.586 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.504e-06/0.1293, allocations: 0 / 365.1 MB, free: 5.586 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.15e-06/0.1293, allocations: 7.984 kB / 365.1 MB, free: 5.578 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004061/0.1298, allocations: 321.4 kB / 365.4 MB, free: 5.215 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.445e-06/0.1298, allocations: 0 / 365.4 MB, free: 5.215 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001618/0.1299, allocations: 27.97 kB / 365.4 MB, free: 5.188 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006502/0.1306, allocations: 216.7 kB / 365.6 MB, free: 4.973 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.225e-05/0.1306, allocations: 8 kB / 365.7 MB, free: 4.965 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006783/0.1374, allocations: 2.743 MB / 368.4 MB, free: 2.082 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.863e-06/0.1375, allocations: 0 / 368.4 MB, free: 2.082 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003279/0.1407, allocations: 0.8427 MB / 369.2 MB, free: 1.223 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.639e-05/0.1409, allocations: 96.89 kB / 369.3 MB, free: 1.109 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.19e-05/0.1409, allocations: 4 kB / 369.3 MB, free: 1.105 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002971/0.1412, allocations: 36.03 kB / 369.4 MB, free: 1.07 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.788e-05/0.1413, allocations: 11.98 kB / 369.4 MB, free: 1.059 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.094e-05/0.1413, allocations: 7.984 kB / 369.4 MB, free: 1.051 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001426/0.1414, allocations: 157.9 kB / 369.6 MB, free: 0.8984 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1415, allocations: 0 / 369.6 MB, free: 0.8984 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004854/0.1419, allocations: 75.84 kB / 369.6 MB, free: 0.8242 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 (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.0001521/0.1421, allocations: 115.2 kB / 369.7 MB, free: 0.7031 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001686/0.1438, allocations: 458.2 kB / 370.2 MB, free: 248 kB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.666e-06/0.1438, allocations: 4 kB / 370.2 MB, free: 244 kB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.15/0.2938, allocations: 318.7 kB / 370.5 MB, free: 25.95 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005549/0.2944, allocations: 26.47 kB / 370.5 MB, free: 25.95 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001541/0.296, allocations: 0.5779 MB / 371.1 MB, free: 25.69 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002378/0.2962, allocations: 0.7467 MB / 371.8 MB, free: 25 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.223e-05/0.2963, allocations: 17.11 kB / 371.9 MB, free: 24.99 MB / 302.1 MB Notification: Performance of SimCode: time 1.082e-06/0.2963, allocations: 0 / 371.9 MB, free: 24.99 MB / 302.1 MB Notification: Performance of Templates: time 0.007623/0.3039, allocations: 4.081 MB / 375.9 MB, free: 24.8 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OvervoltageProtection/OvervoltageProtection.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches