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.001488/0.001488, allocations: 103.7 kB / 16.62 MB, free: 6.812 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.001612/0.001612, allocations: 193.8 kB / 17.55 MB, free: 5.953 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.459/1.459, allocations: 222.9 MB / 241.2 MB, free: 13.73 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009586/0.0009587, allocations: 51.73 kB / 300.1 MB, free: 5.98 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1033/0.1042, allocations: 49.45 MB / 349.6 MB, free: 4.527 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.004098/0.1084, allocations: 2.737 MB / 352.3 MB, free: 1.77 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001158/0.1096, allocations: 0.67 MB / 353 MB, free: 1.094 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001208/0.1097, allocations: 4 kB / 353 MB, free: 1.09 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001499/0.1099, allocations: 27.77 kB / 353 MB, free: 1.062 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001511/0.1101, allocations: 79.39 kB / 353.1 MB, free: 0.9844 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003091/0.1104, allocations: 79.91 kB / 353.2 MB, free: 0.9062 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003565/0.1107, allocations: 358.5 kB / 353.5 MB, free: 0.5547 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002121/0.111, allocations: 88.69 kB / 353.6 MB, free: 476 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002228/0.1112, allocations: 143.5 kB / 353.8 MB, free: 332 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000193/0.1114, allocations: 159.4 kB / 353.9 MB, free: 172 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.73e-05/0.1115, allocations: 32 kB / 353.9 MB, free: 140 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.791e-05/0.1115, allocations: 32 kB / 354 MB, free: 108 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.358e-05/0.1116, allocations: 67.75 kB / 354 MB, free: 40 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001469/0.1117, allocations: 147.4 kB / 354.2 MB, free: 15.89 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003124/0.112, allocations: 339 kB / 354.5 MB, free: 15.56 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.1121, allocations: 0 / 354.5 MB, free: 15.56 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.1121, allocations: 4 kB / 354.5 MB, free: 15.56 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.675e-06/0.1121, allocations: 0 / 354.5 MB, free: 15.56 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.001494/0.1136, allocations: 0.6393 MB / 355.2 MB, free: 14.87 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.192e-05/0.1136, allocations: 8.031 kB / 355.2 MB, free: 14.86 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.75e-05/0.1137, allocations: 32.56 kB / 355.2 MB, free: 14.83 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000275/0.114, allocations: 256.7 kB / 355.4 MB, free: 14.54 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.772e-05/0.114, allocations: 16.81 kB / 355.5 MB, free: 14.53 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.434e-05/0.1141, allocations: 20.31 kB / 355.5 MB, free: 14.51 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006914/0.1148, allocations: 306.9 kB / 355.8 MB, free: 14.2 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.127e-05/0.1148, allocations: 0 / 355.8 MB, free: 14.2 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.641e-05/0.1148, allocations: 8 kB / 355.8 MB, free: 14.19 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.536e-06/0.1149, allocations: 7.938 kB / 355.8 MB, free: 14.18 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008087/0.1157, allocations: 265.6 kB / 356.1 MB, free: 13.92 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001772/0.1175, allocations: 1.073 MB / 357.1 MB, free: 12.76 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002069/0.1195, allocations: 442.2 kB / 357.6 MB, free: 12.32 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003899/0.1199, allocations: 142.5 kB / 357.7 MB, free: 12.18 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.584e-05/0.12, allocations: 4 kB / 357.7 MB, free: 12.18 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.785e-05/0.12, allocations: 34.56 kB / 357.7 MB, free: 12.13 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 1.573e-06/0.12, allocations: 4 kB / 357.7 MB, free: 12.13 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.005293/0.1253, allocations: 1.018 MB / 358.8 MB, free: 11.08 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.444e-05/0.1254, allocations: 51.41 kB / 358.8 MB, free: 11.02 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002466/0.1256, allocations: 220.1 kB / 359 MB, free: 10.79 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.172e-05/0.1257, allocations: 29.7 kB / 359.1 MB, free: 10.75 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001024/0.1258, allocations: 164.1 kB / 359.2 MB, free: 10.59 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.557e-05/0.1259, allocations: 51.27 kB / 359.3 MB, free: 10.54 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.568e-05/0.1259, allocations: 37.69 kB / 359.3 MB, free: 10.5 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000117/0.1261, allocations: 326.8 kB / 359.6 MB, free: 10.17 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003651/0.1264, allocations: 103.9 kB / 359.7 MB, free: 10.07 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003399/0.1268, allocations: 125.6 kB / 359.8 MB, free: 9.938 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006464/0.1274, allocations: 233.5 kB / 360.1 MB, free: 9.703 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.347e-06/0.1275, allocations: 0 / 360.1 MB, free: 9.703 MB / 302.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.003041/0.1305, allocations: 0.6375 MB / 360.7 MB, free: 9.059 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.745e-05/0.1305, allocations: 7.938 kB / 360.7 MB, free: 9.051 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.866e-06/0.1306, allocations: 3.984 kB / 360.7 MB, free: 9.047 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007304/0.1313, allocations: 220.7 kB / 360.9 MB, free: 8.828 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001687/0.1315, allocations: 27.98 kB / 361 MB, free: 8.801 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006837/0.1383, allocations: 2.75 MB / 363.7 MB, free: 5.914 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003294/0.1387, allocations: 35.88 kB / 363.7 MB, free: 5.879 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.19e-05/0.1387, allocations: 12.05 kB / 363.8 MB, free: 5.867 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.000156/0.1389, allocations: 141.6 kB / 363.9 MB, free: 5.719 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.006e-05/0.1389, allocations: 19.72 kB / 363.9 MB, free: 5.699 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.488e-05/0.139, allocations: 29.52 kB / 363.9 MB, free: 5.668 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.903e-06/0.139, allocations: 0 / 363.9 MB, free: 5.668 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.525e-06/0.139, allocations: 0 / 363.9 MB, free: 5.668 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.805e-06/0.139, allocations: 0 / 363.9 MB, free: 5.668 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003574/0.1394, allocations: 325.4 kB / 364.3 MB, free: 5.301 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.1394, allocations: 4 kB / 364.3 MB, free: 5.297 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001582/0.1396, allocations: 27.98 kB / 364.3 MB, free: 5.27 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006513/0.1402, allocations: 212.7 kB / 364.5 MB, free: 5.059 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.632e-05/0.1403, allocations: 11.98 kB / 364.5 MB, free: 5.047 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006702/0.147, allocations: 2.739 MB / 367.3 MB, free: 2.168 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.474e-06/0.147, allocations: 0 / 367.3 MB, free: 2.168 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003429/0.1504, allocations: 0.8462 MB / 368.1 MB, free: 1.305 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001022/0.1506, allocations: 96.84 kB / 368.2 MB, free: 1.191 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.607e-05/0.1506, allocations: 4 kB / 368.2 MB, free: 1.188 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003157/0.1509, allocations: 36.03 kB / 368.2 MB, free: 1.152 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.087e-05/0.151, allocations: 11.98 kB / 368.2 MB, free: 1.141 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.091e-05/0.151, allocations: 4 kB / 368.3 MB, free: 1.137 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001664/0.1512, allocations: 157.8 kB / 368.4 MB, free: 0.9844 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1512, allocations: 0 / 368.4 MB, free: 0.9844 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004838/0.1517, allocations: 79.84 kB / 368.5 MB, free: 0.9062 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.0001453/0.1518, allocations: 99.19 kB / 368.6 MB, free: 0.8008 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001658/0.1535, allocations: 466.2 kB / 369 MB, free: 340 kB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.636e-06/0.1535, allocations: 64 / 369 MB, free: 340 kB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.173/0.3266, allocations: 328.5 kB / 369.4 MB, free: 25.94 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00059/0.3272, allocations: 26.61 kB / 369.4 MB, free: 25.93 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0016/0.3288, allocations: 0.6301 MB / 370 MB, free: 25.64 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002088/0.329, allocations: 0.7422 MB / 370.8 MB, free: 24.94 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.977e-05/0.3292, allocations: 15.58 kB / 370.8 MB, free: 24.94 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.149e-05/0.3292, allocations: 19.53 kB / 370.8 MB, free: 24.93 MB / 302.1 MB Notification: Performance of SimCode: time 7.61e-07/0.3292, allocations: 1.188 kB / 370.8 MB, free: 24.93 MB / 302.1 MB Notification: Performance of Templates: time 0.01187/0.3411, allocations: 4.906 MB / 375.7 MB, free: 24.72 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OvervoltageProtection/OvervoltageProtection.csv","/var/lib/jenkins/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