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.001105/0.001105, allocations: 114.9 kB / 17.74 MB, free: 5.336 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.001035/0.001035, allocations: 188.5 kB / 18.67 MB, free: 4.41 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.352/1.352, allocations: 222.9 MB / 242.4 MB, free: 15.19 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001059/0.001059, allocations: 55.92 kB / 352 MB, free: 3.23 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2641/0.2652, allocations: 49.43 MB / 401.4 MB, free: 8.723 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.003958/0.2692, allocations: 2.71 MB / 404.1 MB, free: 6.121 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001317/0.2706, allocations: 0.6583 MB / 404.8 MB, free: 5.457 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002324/0.2708, allocations: 7.938 kB / 404.8 MB, free: 5.449 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001842/0.271, allocations: 43.58 kB / 404.8 MB, free: 5.406 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002278/0.2713, allocations: 83.25 kB / 404.9 MB, free: 5.324 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003423/0.2716, allocations: 91.86 kB / 405 MB, free: 5.234 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004059/0.272, allocations: 366.5 kB / 405.4 MB, free: 4.875 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002022/0.2723, allocations: 72.73 kB / 405.4 MB, free: 4.801 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002654/0.2725, allocations: 155.5 kB / 405.6 MB, free: 4.648 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002275/0.2728, allocations: 155.4 kB / 405.7 MB, free: 4.496 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.941e-05/0.2728, allocations: 32 kB / 405.8 MB, free: 4.465 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.69e-05/0.2729, allocations: 32 kB / 405.8 MB, free: 4.434 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.606e-05/0.273, allocations: 67.75 kB / 405.9 MB, free: 4.367 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001554/0.2731, allocations: 147.3 kB / 406 MB, free: 4.223 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003361/0.2735, allocations: 348 kB / 406.3 MB, free: 3.887 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.459e-06/0.2735, allocations: 0 / 406.3 MB, free: 3.887 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.2735, allocations: 0 / 406.3 MB, free: 3.887 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.18e-05/0.2735, allocations: 0 / 406.3 MB, free: 3.887 MB / 318.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.001504/0.275, allocations: 0.6354 MB / 407 MB, free: 3.203 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.302e-05/0.2751, allocations: 15.97 kB / 407 MB, free: 3.188 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.346e-05/0.2752, allocations: 24.66 kB / 407 MB, free: 3.164 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003414/0.2755, allocations: 272.5 kB / 407.3 MB, free: 2.855 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.528e-05/0.2755, allocations: 12.81 kB / 407.3 MB, free: 2.844 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.797e-05/0.2756, allocations: 24.38 kB / 407.3 MB, free: 2.82 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000657/0.2763, allocations: 298.9 kB / 407.6 MB, free: 2.512 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.089e-05/0.2763, allocations: 0 / 407.6 MB, free: 2.512 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.939e-05/0.2763, allocations: 7.938 kB / 407.6 MB, free: 2.504 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.047e-06/0.2763, allocations: 12 kB / 407.6 MB, free: 2.492 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007435/0.2771, allocations: 265.5 kB / 407.9 MB, free: 2.23 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001618/0.2787, allocations: 1.069 MB / 409 MB, free: 1.082 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001817/0.2805, allocations: 438.3 kB / 409.4 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003738/0.2809, allocations: 148.8 kB / 409.5 MB, free: 0.4961 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.043e-05/0.281, allocations: 4 kB / 409.5 MB, free: 0.4922 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.693e-05/0.281, allocations: 30.56 kB / 409.6 MB, free: 464 kB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 1.954e-06/0.281, allocations: 4 kB / 409.6 MB, free: 460 kB / 318.1 MB Notification: Performance of matching and sorting (n=14): time 0.004729/0.2857, allocations: 1.021 MB / 410.6 MB, free: 15.4 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.928e-05/0.2858, allocations: 55.41 kB / 410.7 MB, free: 15.34 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002094/0.286, allocations: 216.2 kB / 410.9 MB, free: 15.11 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.899e-05/0.2861, allocations: 29.7 kB / 410.9 MB, free: 15.08 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.986e-05/0.2862, allocations: 160.1 kB / 411 MB, free: 14.92 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.592e-05/0.2862, allocations: 43.3 kB / 411.1 MB, free: 14.88 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.645e-05/0.2863, allocations: 37.7 kB / 411.1 MB, free: 14.83 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001081/0.2864, allocations: 330.8 kB / 411.5 MB, free: 14.5 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003414/0.2868, allocations: 107.9 kB / 411.6 MB, free: 14.39 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003328/0.2871, allocations: 133.5 kB / 411.7 MB, free: 14.25 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000632/0.2877, allocations: 221.6 kB / 411.9 MB, free: 14.03 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.968e-06/0.2878, allocations: 4 kB / 411.9 MB, free: 14.03 MB / 334.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.00277/0.2905, allocations: 0.641 MB / 412.5 MB, free: 13.38 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.78e-05/0.2906, allocations: 4 kB / 412.6 MB, free: 13.38 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/0.2906, allocations: 0 / 412.6 MB, free: 13.38 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006954/0.2913, allocations: 220.7 kB / 412.8 MB, free: 13.16 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001704/0.2915, allocations: 43.91 kB / 412.8 MB, free: 13.11 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006695/0.2982, allocations: 2.742 MB / 415.6 MB, free: 10.24 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002899/0.2985, allocations: 39.88 kB / 415.6 MB, free: 10.2 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.31e-05/0.2985, allocations: 8 kB / 415.6 MB, free: 10.19 MB / 334.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.0001597/0.2987, allocations: 135.8 kB / 415.7 MB, free: 10.05 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.41e-05/0.2988, allocations: 19.91 kB / 415.8 MB, free: 10.03 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.498e-05/0.2988, allocations: 21.52 kB / 415.8 MB, free: 10 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.624e-06/0.2988, allocations: 0 / 415.8 MB, free: 10 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.066e-06/0.2988, allocations: 0 / 415.8 MB, free: 10 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.191e-06/0.2988, allocations: 7.984 kB / 415.8 MB, free: 9.992 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003847/0.2992, allocations: 329.2 kB / 416.1 MB, free: 9.621 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.2992, allocations: 0 / 416.1 MB, free: 9.621 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001566/0.2994, allocations: 35.91 kB / 416.1 MB, free: 9.586 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006115/0.3, allocations: 220.7 kB / 416.4 MB, free: 9.367 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.112e-05/0.3001, allocations: 3.984 kB / 416.4 MB, free: 9.363 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006342/0.3064, allocations: 2.727 MB / 419.1 MB, free: 6.5 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.3064, allocations: 4.062 kB / 419.1 MB, free: 6.496 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003102/0.3095, allocations: 0.8394 MB / 419.9 MB, free: 5.637 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001071/0.3097, allocations: 100.8 kB / 420 MB, free: 5.52 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.886e-05/0.3097, allocations: 0 / 420 MB, free: 5.52 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002979/0.31, allocations: 35.97 kB / 420.1 MB, free: 5.484 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.824e-05/0.3101, allocations: 16.05 kB / 420.1 MB, free: 5.469 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.984e-05/0.3101, allocations: 7.984 kB / 420.1 MB, free: 5.461 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001468/0.3103, allocations: 153.9 kB / 420.2 MB, free: 5.312 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3103, allocations: 0 / 420.2 MB, free: 5.312 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004744/0.3107, allocations: 79.84 kB / 420.3 MB, free: 5.234 MB / 334.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.0001545/0.3109, allocations: 103.2 kB / 420.4 MB, free: 5.125 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001562/0.3125, allocations: 453.8 kB / 420.9 MB, free: 4.672 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.3125, allocations: 0 / 420.9 MB, free: 4.672 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001073/0.3136, allocations: 338.4 kB / 421.2 MB, free: 4.328 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003921/0.314, allocations: 32.75 kB / 421.2 MB, free: 4.297 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001392/0.3154, allocations: 0.5738 MB / 421.8 MB, free: 3.691 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002989/0.3157, allocations: 0.7398 MB / 422.5 MB, free: 2.926 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.409e-05/0.3157, allocations: 15.44 kB / 422.5 MB, free: 2.91 MB / 334.1 MB Notification: Performance of SimCode: time 6.71e-07/0.3158, allocations: 7.938 kB / 422.6 MB, free: 2.902 MB / 334.1 MB Notification: Performance of Templates: time 0.00634/0.3221, allocations: 4.113 MB / 426.7 MB, free: 14.79 MB / 350.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