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.001335/0.001339, allocations: 101.4 kB / 18.39 MB, free: 4.664 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.001321/0.001321, allocations: 189.1 kB / 19.33 MB, free: 3.738 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.401/1.401, allocations: 205.1 MB / 225.2 MB, free: 12.2 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.001415/0.001415, allocations: 55.92 kB / 329.2 MB, free: 3.285 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08842/0.08984, allocations: 46.61 MB / 375.8 MB, free: 4.559 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.004108/0.094, allocations: 2.669 MB / 378.5 MB, free: 1.875 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001434/0.09547, allocations: 0.7096 MB / 379.2 MB, free: 1.156 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002262/0.09572, allocations: 4 kB / 379.2 MB, free: 1.152 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002135/0.09597, allocations: 43.58 kB / 379.2 MB, free: 1.109 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002321/0.09622, allocations: 79.27 kB / 379.3 MB, free: 1.031 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003781/0.09661, allocations: 103.8 kB / 379.4 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004575/0.09708, allocations: 358.5 kB / 379.8 MB, free: 0.5781 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002478/0.09734, allocations: 100.6 kB / 379.9 MB, free: 492 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003505/0.0977, allocations: 135.5 kB / 380 MB, free: 356 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002793/0.09799, allocations: 167.3 kB / 380.2 MB, free: 188 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.289e-05/0.09806, allocations: 28 kB / 380.2 MB, free: 160 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.354e-05/0.09813, allocations: 32 kB / 380.2 MB, free: 128 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.375e-05/0.0982, allocations: 67.75 kB / 380.3 MB, free: 60 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2037/0.3019, allocations: 142.8 kB / 380.4 MB, free: 10.11 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004936/0.3024, allocations: 340.3 kB / 380.8 MB, free: 10.1 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.3024, allocations: 1 kB / 380.8 MB, free: 10.1 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.324e-06/0.3024, allocations: 0 / 380.8 MB, free: 10.1 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.474e-06/0.3024, allocations: 3.125 kB / 380.8 MB, free: 10.1 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.001375/0.3038, allocations: 0.6378 MB / 381.4 MB, free: 9.672 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.071e-05/0.3039, allocations: 10.09 kB / 381.4 MB, free: 9.672 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.277e-05/0.304, allocations: 26.97 kB / 381.4 MB, free: 9.66 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003379/0.3043, allocations: 267 kB / 381.7 MB, free: 9.434 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.889e-05/0.3043, allocations: 11.53 kB / 381.7 MB, free: 9.434 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.889e-05/0.3044, allocations: 19.47 kB / 381.7 MB, free: 9.434 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006544/0.305, allocations: 300.9 kB / 382 MB, free: 9.371 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.442e-05/0.3051, allocations: 8.812 kB / 382 MB, free: 9.367 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.178e-05/0.3051, allocations: 9.703 kB / 382 MB, free: 9.367 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.907e-06/0.3051, allocations: 4.125 kB / 382 MB, free: 9.367 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007484/0.3059, allocations: 266.7 kB / 382.3 MB, free: 9.367 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001702/0.3076, allocations: 1.063 MB / 383.4 MB, free: 8.797 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002028/0.3096, allocations: 442.6 kB / 383.8 MB, free: 8.762 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003925/0.31, allocations: 145.9 kB / 383.9 MB, free: 8.75 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.946e-05/0.3101, allocations: 3.047 kB / 383.9 MB, free: 8.75 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.954e-05/0.3101, allocations: 31.72 kB / 384 MB, free: 8.711 MB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 2.053e-06/0.3101, allocations: 1.25 kB / 384 MB, free: 8.711 MB / 318.1 MB Notification: Performance of matching and sorting (n=14): time 0.004875/0.315, allocations: 1.018 MB / 385 MB, free: 8.543 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.26e-05/0.315, allocations: 61.86 kB / 385.1 MB, free: 8.473 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002689/0.3153, allocations: 217.2 kB / 385.3 MB, free: 8.367 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.068e-05/0.3154, allocations: 30.48 kB / 385.3 MB, free: 8.336 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001013/0.3155, allocations: 155.8 kB / 385.4 MB, free: 8.227 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.814e-05/0.3155, allocations: 50.36 kB / 385.5 MB, free: 8.195 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.769e-05/0.3156, allocations: 36.5 kB / 385.5 MB, free: 8.18 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.896e-05/0.3157, allocations: 327.5 kB / 385.9 MB, free: 7.867 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003611/0.3161, allocations: 110.6 kB / 386 MB, free: 7.863 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003513/0.3164, allocations: 124.2 kB / 386.1 MB, free: 7.844 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007174/0.3172, allocations: 231.6 kB / 386.3 MB, free: 7.82 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/0.3172, allocations: 0 / 386.3 MB, free: 7.82 MB / 318.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.002985/0.3202, allocations: 0.6337 MB / 386.9 MB, free: 7.754 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.56e-05/0.3202, allocations: 9.469 kB / 387 MB, free: 7.75 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.307e-06/0.3202, allocations: 0 / 387 MB, free: 7.75 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007939/0.321, allocations: 221.7 kB / 387.2 MB, free: 7.734 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001908/0.3212, allocations: 36.92 kB / 387.2 MB, free: 7.734 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006736/0.328, allocations: 2.749 MB / 390 MB, free: 5.996 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003562/0.3283, allocations: 37.47 kB / 390 MB, free: 5.984 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.561e-05/0.3284, allocations: 11.5 kB / 390 MB, free: 5.98 MB / 318.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.0001896/0.3286, allocations: 142.2 kB / 390.1 MB, free: 5.844 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.026e-05/0.3286, allocations: 17.91 kB / 390.2 MB, free: 5.836 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.265e-05/0.3287, allocations: 24.94 kB / 390.2 MB, free: 5.816 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.629e-06/0.3287, allocations: 10.34 kB / 390.2 MB, free: 5.809 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.3287, allocations: 0.6094 kB / 390.2 MB, free: 5.809 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.929e-06/0.3287, allocations: 0.75 kB / 390.2 MB, free: 5.809 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004152/0.3292, allocations: 321.8 kB / 390.5 MB, free: 5.562 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.464e-06/0.3292, allocations: 1.969 kB / 390.5 MB, free: 5.562 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001585/0.3293, allocations: 31.06 kB / 390.5 MB, free: 5.559 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006784/0.33, allocations: 220.7 kB / 390.8 MB, free: 5.508 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.995e-05/0.33, allocations: 7.609 kB / 390.8 MB, free: 5.508 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006215/0.3363, allocations: 2.736 MB / 393.5 MB, free: 3.711 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/0.3363, allocations: 0 / 393.5 MB, free: 3.711 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003286/0.3396, allocations: 0.8484 MB / 394.3 MB, free: 3.43 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001101/0.3397, allocations: 95.75 kB / 394.4 MB, free: 3.324 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.588e-05/0.3398, allocations: 0.75 kB / 394.4 MB, free: 3.324 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002983/0.3401, allocations: 37.2 kB / 394.5 MB, free: 3.316 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.945e-05/0.3402, allocations: 9.469 kB / 394.5 MB, free: 3.316 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.571e-05/0.3402, allocations: 10.06 kB / 394.5 MB, free: 3.312 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001746/0.3404, allocations: 155.7 kB / 394.6 MB, free: 3.215 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.3404, allocations: 1.344 kB / 394.6 MB, free: 3.215 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005721/0.341, allocations: 82 kB / 394.7 MB, free: 3.199 MB / 318.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.0001456/0.3411, allocations: 104.7 kB / 394.8 MB, free: 3.105 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001739/0.3429, allocations: 441.3 kB / 395.3 MB, free: 2.934 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.548e-06/0.3429, allocations: 0 / 395.3 MB, free: 2.934 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001165/0.3441, allocations: 332.2 kB / 395.6 MB, free: 2.785 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004189/0.3445, allocations: 39.38 kB / 395.6 MB, free: 2.773 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001518/0.346, allocations: 0.5845 MB / 396.2 MB, free: 2.43 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002373/0.3463, allocations: 0.7432 MB / 397 MB, free: 1.727 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.098e-05/0.3463, allocations: 17.33 kB / 397 MB, free: 1.719 MB / 318.1 MB Notification: Performance of SimCode: time 1.803e-06/0.3463, allocations: 0 / 397 MB, free: 1.719 MB / 318.1 MB Notification: Performance of Templates: time 0.00705/0.3534, allocations: 4.092 MB / 401.1 MB, free: 0.5234 MB / 318.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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches