Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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.1.0-beta.om_Modelica.Electrical.Analog.Examples.OvervoltageProtection") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001493/0.001493, allocations: 114.3 kB / 18.45 MB, free: 4.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001551/0.001551, allocations: 208 kB / 19.41 MB, free: 3.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.407/1.407, allocations: 227.7 MB / 247.9 MB, free: 10.16 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001916/0.001916, allocations: 64.09 kB / 359.7 MB, free: 12.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2377/0.2396, allocations: 50.55 MB / 410.2 MB, free: 1.43 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.003894/0.2435, allocations: 2.722 MB / 412.9 MB, free: 14.7 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001207/0.2447, allocations: 0.709 MB / 413.6 MB, free: 13.98 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001178/0.2448, allocations: 7.938 kB / 413.7 MB, free: 13.98 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001461/0.2449, allocations: 47.52 kB / 413.7 MB, free: 13.93 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001441/0.2451, allocations: 79.27 kB / 413.8 MB, free: 13.85 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003172/0.2454, allocations: 107.8 kB / 413.9 MB, free: 13.75 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003804/0.2458, allocations: 358.6 kB / 414.2 MB, free: 13.39 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001671/0.2459, allocations: 68.69 kB / 414.3 MB, free: 13.32 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002553/0.2462, allocations: 151.5 kB / 414.5 MB, free: 13.17 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002015/0.2464, allocations: 159.3 kB / 414.6 MB, free: 13.02 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.751e-05/0.2465, allocations: 32 kB / 414.6 MB, free: 12.98 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.747e-05/0.2465, allocations: 32 kB / 414.7 MB, free: 12.95 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.252e-05/0.2466, allocations: 71.73 kB / 414.7 MB, free: 12.88 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001396/0.2467, allocations: 151.2 kB / 414.9 MB, free: 12.73 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00039/0.2471, allocations: 350.5 kB / 415.2 MB, free: 12.39 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.851e-06/0.2471, allocations: 4 kB / 415.2 MB, free: 12.39 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.2471, allocations: 0 / 415.2 MB, free: 12.39 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.032e-06/0.2471, allocations: 0 / 415.2 MB, free: 12.39 MB / 334.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.00147/0.2486, allocations: 0.6507 MB / 415.9 MB, free: 11.69 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.654e-05/0.2486, allocations: 8.031 kB / 415.9 MB, free: 11.68 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001792/0.2488, allocations: 40.73 kB / 415.9 MB, free: 11.64 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003719/0.2492, allocations: 264.8 kB / 416.2 MB, free: 11.34 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.817e-05/0.2492, allocations: 16.81 kB / 416.2 MB, free: 11.33 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.87e-05/0.2493, allocations: 20.38 kB / 416.2 MB, free: 11.31 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006608/0.2499, allocations: 306.9 kB / 416.5 MB, free: 11 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.237e-06/0.2499, allocations: 0 / 416.5 MB, free: 11 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.101e-05/0.25, allocations: 12 kB / 416.5 MB, free: 10.98 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.334e-06/0.25, allocations: 4 kB / 416.5 MB, free: 10.98 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007763/0.2507, allocations: 273.5 kB / 416.8 MB, free: 10.71 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001694/0.2524, allocations: 1.058 MB / 417.9 MB, free: 9.574 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001877/0.2543, allocations: 438.2 kB / 418.3 MB, free: 9.137 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003758/0.2547, allocations: 132.8 kB / 418.4 MB, free: 9.004 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.284e-05/0.2547, allocations: 3.984 kB / 418.4 MB, free: 9 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.638e-05/0.2547, allocations: 34.56 kB / 418.5 MB, free: 8.957 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.322e-06/0.2547, allocations: 0 / 418.5 MB, free: 8.957 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.004807/0.2595, allocations: 1.021 MB / 419.5 MB, free: 7.91 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.422e-05/0.2596, allocations: 59.39 kB / 419.5 MB, free: 7.84 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002276/0.2598, allocations: 225 kB / 419.8 MB, free: 7.613 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.994e-05/0.2599, allocations: 29.7 kB / 419.8 MB, free: 7.578 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001141/0.26, allocations: 164.2 kB / 420 MB, free: 7.414 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.883e-05/0.26, allocations: 43.64 kB / 420 MB, free: 7.371 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.199e-05/0.2601, allocations: 37.66 kB / 420 MB, free: 7.328 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001482/0.2602, allocations: 334.8 kB / 420.4 MB, free: 6.992 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00035/0.2606, allocations: 103.9 kB / 420.5 MB, free: 6.891 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003466/0.2609, allocations: 121.6 kB / 420.6 MB, free: 6.766 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006582/0.2616, allocations: 232.7 kB / 420.8 MB, free: 6.535 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.2616, allocations: 0 / 420.8 MB, free: 6.535 MB / 334.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.00287/0.2645, allocations: 0.6385 MB / 421.4 MB, free: 5.887 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.628e-05/0.2645, allocations: 4 kB / 421.4 MB, free: 5.883 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.881e-06/0.2645, allocations: 0 / 421.4 MB, free: 5.883 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007277/0.2652, allocations: 220.7 kB / 421.7 MB, free: 5.664 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001684/0.2654, allocations: 43.91 kB / 421.7 MB, free: 5.621 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006681/0.2721, allocations: 2.735 MB / 424.4 MB, free: 2.75 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002831/0.2724, allocations: 39.95 kB / 424.5 MB, free: 2.711 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.978e-05/0.2724, allocations: 4 kB / 424.5 MB, free: 2.707 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.0001688/0.2725, allocations: 137.7 kB / 424.6 MB, free: 2.562 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.442e-05/0.2726, allocations: 23.84 kB / 424.6 MB, free: 2.539 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.378e-05/0.2727, allocations: 21.83 kB / 424.7 MB, free: 2.516 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.813e-06/0.2727, allocations: 0 / 424.7 MB, free: 2.516 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.645e-06/0.2727, allocations: 4 kB / 424.7 MB, free: 2.512 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.2727, allocations: 4 kB / 424.7 MB, free: 2.508 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003961/0.2731, allocations: 333.2 kB / 425 MB, free: 2.133 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.2731, allocations: 4 kB / 425 MB, free: 2.129 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000155/0.2732, allocations: 31.97 kB / 425 MB, free: 2.098 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006732/0.2739, allocations: 220.6 kB / 425.2 MB, free: 1.879 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.115e-05/0.2739, allocations: 4.094 kB / 425.2 MB, free: 1.875 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006678/0.2806, allocations: 2.743 MB / 428 MB, free: 14.99 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.704e-06/0.2806, allocations: 0 / 428 MB, free: 14.99 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003171/0.2838, allocations: 0.8434 MB / 428.8 MB, free: 14.13 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000103/0.2839, allocations: 100.9 kB / 428.9 MB, free: 14.01 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.177e-05/0.2839, allocations: 0 / 428.9 MB, free: 14.01 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002993/0.2842, allocations: 40.03 kB / 429 MB, free: 13.97 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.947e-05/0.2842, allocations: 11.92 kB / 429 MB, free: 13.96 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.069e-05/0.2843, allocations: 7.984 kB / 429 MB, free: 13.95 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000181/0.2845, allocations: 160.5 kB / 429.1 MB, free: 13.79 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2845, allocations: 0 / 429.1 MB, free: 13.79 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004931/0.2849, allocations: 75.89 kB / 429.2 MB, free: 13.72 MB / 350.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.0001644/0.2851, allocations: 103.8 kB / 429.3 MB, free: 13.61 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001609/0.2867, allocations: 445.9 kB / 429.8 MB, free: 13.16 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.287e-06/0.2867, allocations: 0 / 429.8 MB, free: 13.16 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00106/0.2878, allocations: 334.5 kB / 430.1 MB, free: 12.82 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003909/0.2882, allocations: 37.53 kB / 430.1 MB, free: 12.79 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00136/0.2895, allocations: 0.5608 MB / 430.7 MB, free: 12.2 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004235/0.29, allocations: 0.7476 MB / 431.4 MB, free: 11.43 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.07e-05/0.29, allocations: 21.47 kB / 431.5 MB, free: 11.4 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.09e-05/0.2901, allocations: 15.44 kB / 431.5 MB, free: 11.39 MB / 350.1 MB Notification: Performance of SimCode: time 7.11e-07/0.2901, allocations: 0 / 431.5 MB, free: 11.39 MB / 350.1 MB Notification: Performance of Templates: time 0.009564/0.2996, allocations: 4.986 MB / 436.5 MB, free: 6.426 MB / 350.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OvervoltageProtection.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OvervoltageProtection.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OvervoltageProtection -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OvervoltageProtection_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/OvervoltageProtection/OvervoltageProtection.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OvervoltageProtection.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches