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.001154/0.001154, allocations: 105.8 kB / 18.3 MB, free: 4.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001251/0.001251, allocations: 211.8 kB / 19.25 MB, free: 3.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.393/1.393, allocations: 227.4 MB / 247.4 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001286/0.001286, allocations: 63.14 kB / 307.6 MB, free: 0.6328 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08421/0.08552, allocations: 50.54 MB / 358.2 MB, free: 14.11 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.003841/0.0894, allocations: 2.709 MB / 360.9 MB, free: 11.38 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001275/0.0907, allocations: 0.7245 MB / 361.6 MB, free: 10.65 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001574/0.09087, allocations: 4 kB / 361.6 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001528/0.09105, allocations: 39.58 kB / 361.6 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001672/0.09123, allocations: 75.27 kB / 361.7 MB, free: 10.53 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003249/0.09156, allocations: 107.8 kB / 361.8 MB, free: 10.43 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003665/0.09194, allocations: 358.6 kB / 362.2 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001766/0.09212, allocations: 92.69 kB / 362.2 MB, free: 9.984 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002654/0.09239, allocations: 151.5 kB / 362.4 MB, free: 9.836 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002067/0.09261, allocations: 159.3 kB / 362.6 MB, free: 9.68 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.465e-05/0.09267, allocations: 32 kB / 362.6 MB, free: 9.648 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.768e-05/0.09277, allocations: 36 kB / 362.6 MB, free: 9.613 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.824e-05/0.09283, allocations: 71.8 kB / 362.7 MB, free: 9.543 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001426/0.09298, allocations: 147.3 kB / 362.8 MB, free: 9.398 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003462/0.09334, allocations: 351 kB / 363.2 MB, free: 9.055 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.626e-06/0.09335, allocations: 0 / 363.2 MB, free: 9.055 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.09336, allocations: 0 / 363.2 MB, free: 9.055 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.115e-06/0.09337, allocations: 0 / 363.2 MB, free: 9.055 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.001469/0.09484, allocations: 0.6392 MB / 363.8 MB, free: 8.367 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.61e-05/0.09489, allocations: 16.03 kB / 363.8 MB, free: 8.352 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001767/0.09507, allocations: 36.64 kB / 363.9 MB, free: 8.316 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002954/0.09538, allocations: 264.5 kB / 364.1 MB, free: 8.02 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.708e-05/0.0954, allocations: 16.81 kB / 364.1 MB, free: 8 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.914e-05/0.09546, allocations: 24.36 kB / 364.2 MB, free: 7.977 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006556/0.09612, allocations: 298.9 kB / 364.5 MB, free: 7.668 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.688e-06/0.09614, allocations: 0 / 364.5 MB, free: 7.668 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.064e-05/0.09618, allocations: 12 kB / 364.5 MB, free: 7.656 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.833e-06/0.09619, allocations: 4 kB / 364.5 MB, free: 7.652 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007813/0.09698, allocations: 269.5 kB / 364.7 MB, free: 7.391 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001647/0.09864, allocations: 1.062 MB / 365.8 MB, free: 6.25 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001989/0.1006, allocations: 442.3 kB / 366.2 MB, free: 5.809 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004086/0.1011, allocations: 149 kB / 366.4 MB, free: 5.66 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.17e-05/0.1011, allocations: 0 / 366.4 MB, free: 5.66 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.669e-05/0.1011, allocations: 42.56 kB / 366.4 MB, free: 5.609 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 1.112e-06/0.1011, allocations: 0 / 366.4 MB, free: 5.609 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.005047/0.1062, allocations: 1.018 MB / 367.4 MB, free: 4.562 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.539e-05/0.1062, allocations: 63.41 kB / 367.5 MB, free: 4.488 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000226/0.1065, allocations: 213 kB / 367.7 MB, free: 4.266 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.756e-05/0.1065, allocations: 29.7 kB / 367.7 MB, free: 4.23 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001044/0.1066, allocations: 168 kB / 367.9 MB, free: 4.062 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.234e-05/0.1067, allocations: 39.36 kB / 367.9 MB, free: 4.023 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.347e-05/0.1068, allocations: 37.7 kB / 368 MB, free: 3.98 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001183/0.1069, allocations: 330.8 kB / 368.3 MB, free: 3.648 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003594/0.1073, allocations: 111.9 kB / 368.4 MB, free: 3.539 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003667/0.1076, allocations: 132.6 kB / 368.5 MB, free: 3.406 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006965/0.1083, allocations: 225.5 kB / 368.8 MB, free: 3.18 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.1083, allocations: 0 / 368.8 MB, free: 3.18 MB / 302.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.003037/0.1114, allocations: 0.6372 MB / 369.4 MB, free: 2.535 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.785e-05/0.1114, allocations: 8 kB / 369.4 MB, free: 2.527 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.723e-06/0.1114, allocations: 0 / 369.4 MB, free: 2.527 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007352/0.1122, allocations: 216.7 kB / 369.6 MB, free: 2.312 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001737/0.1124, allocations: 39.91 kB / 369.6 MB, free: 2.273 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1404/0.2528, allocations: 2.741 MB / 372.4 MB, free: 19.16 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003141/0.2531, allocations: 39.97 kB / 372.4 MB, free: 19.16 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.129e-05/0.2531, allocations: 10.08 kB / 372.4 MB, free: 19.16 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.000124/0.2533, allocations: 133.1 kB / 372.6 MB, free: 19.05 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.59e-05/0.2533, allocations: 18.7 kB / 372.6 MB, free: 19.05 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.525e-05/0.2534, allocations: 23.42 kB / 372.6 MB, free: 19.04 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.906e-06/0.2534, allocations: 2.547 kB / 372.6 MB, free: 19.04 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.673e-06/0.2534, allocations: 4.5 kB / 372.6 MB, free: 19.04 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.749e-06/0.2534, allocations: 3.25 kB / 372.6 MB, free: 19.04 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003361/0.2537, allocations: 325.8 kB / 372.9 MB, free: 18.86 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.047e-06/0.2538, allocations: 1.422 kB / 372.9 MB, free: 18.86 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000157/0.2539, allocations: 31.16 kB / 373 MB, free: 18.86 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006567/0.2546, allocations: 219.5 kB / 373.2 MB, free: 18.85 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.002e-05/0.2546, allocations: 6.25 kB / 373.2 MB, free: 18.85 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006319/0.2609, allocations: 2.733 MB / 375.9 MB, free: 17.37 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.524e-06/0.261, allocations: 4.906 kB / 375.9 MB, free: 17.37 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003129/0.2641, allocations: 0.8451 MB / 376.8 MB, free: 17.23 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.243e-05/0.2642, allocations: 101.6 kB / 376.9 MB, free: 17.13 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.316e-05/0.2642, allocations: 0.75 kB / 376.9 MB, free: 17.13 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000288/0.2645, allocations: 34.42 kB / 376.9 MB, free: 17.13 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.561e-05/0.2645, allocations: 12.75 kB / 376.9 MB, free: 17.13 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.835e-05/0.2646, allocations: 6.172 kB / 376.9 MB, free: 17.13 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001293/0.2647, allocations: 166.5 kB / 377.1 MB, free: 17.02 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.2647, allocations: 0 / 377.1 MB, free: 17.02 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004491/0.2652, allocations: 76.53 kB / 377.2 MB, free: 17.02 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 9.857e-05/0.2653, allocations: 105.4 kB / 377.3 MB, free: 16.93 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001488/0.2668, allocations: 451.5 kB / 377.7 MB, free: 16.76 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.2668, allocations: 1.219 kB / 377.7 MB, free: 16.76 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009922/0.2678, allocations: 329.6 kB / 378 MB, free: 16.62 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003451/0.2681, allocations: 40.22 kB / 378.1 MB, free: 16.6 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00116/0.2693, allocations: 0.5939 MB / 378.7 MB, free: 16.26 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001466/0.2695, allocations: 0.7451 MB / 379.4 MB, free: 15.56 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.488e-05/0.2695, allocations: 16.53 kB / 379.4 MB, free: 15.56 MB / 302.1 MB Notification: Performance of SimCode: time 2.1e-07/0.2695, allocations: 0 / 379.4 MB, free: 15.56 MB / 302.1 MB Notification: Performance of Templates: time 0.005748/0.2753, allocations: 4.121 MB / 383.5 MB, free: 15.22 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/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_trunk_Modelica.Electrical.Analog.Examples.OvervoltageProtection.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches