Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OvervoltageProtection.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: translateModel(Modelica.Electrical.Analog.Examples.OvervoltageProtection,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|CL.v",fileNamePrefix="Modelica_trunk_cpp_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_cpp_Modelica.Electrical.Analog.Examples.OvervoltageProtection") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001728/0.001728, allocations: 196.6 kB / 17.05 MB, free: 5.102 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.35/1.35, allocations: 226.6 MB / 244.3 MB, free: 6.574 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007565/0.0007563, allocations: 101.9 kB / 296.4 MB, free: 6.793 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002447/0.0002447, allocations: 4 kB / 356.2 MB, free: 11 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2445/0.2448, allocations: 51.3 MB / 407.5 MB, free: 27.81 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.002072/0.2469, allocations: 2.294 MB / 409.8 MB, free: 25.5 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009899/0.248, allocations: 0.6599 MB / 410.4 MB, free: 24.84 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001224/0.2481, allocations: 9.688 kB / 410.5 MB, free: 24.84 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001111/0.2482, allocations: 35.69 kB / 410.5 MB, free: 24.8 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 9.763e-05/0.2483, allocations: 63.47 kB / 410.6 MB, free: 24.74 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002549/0.2486, allocations: 77.06 kB / 410.6 MB, free: 24.66 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002176/0.2488, allocations: 323.3 kB / 410.9 MB, free: 24.35 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001678/0.249, allocations: 70.33 kB / 411 MB, free: 24.28 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001919/0.2492, allocations: 127.6 kB / 411.1 MB, free: 24.16 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001297/0.2493, allocations: 135.5 kB / 411.3 MB, free: 24.02 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.441e-05/0.2494, allocations: 16 kB / 411.3 MB, free: 24.01 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.809e-05/0.2494, allocations: 27.19 kB / 411.3 MB, free: 23.98 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.275e-05/0.2495, allocations: 47.81 kB / 411.4 MB, free: 23.94 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.295e-05/0.2495, allocations: 73.58 kB / 411.4 MB, free: 23.86 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001932/0.2497, allocations: 248.3 kB / 411.7 MB, free: 23.62 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.521e-06/0.2497, allocations: 3.938 kB / 411.7 MB, free: 23.61 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.844e-06/0.2497, allocations: 0 / 411.7 MB, free: 23.61 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.062e-05/0.2498, allocations: 0 / 411.7 MB, free: 23.61 MB / 298.7 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.001265/0.251, allocations: 0.6158 MB / 412.3 MB, free: 22.95 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.712e-05/0.2511, allocations: 8.031 kB / 412.3 MB, free: 22.94 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001608/0.2512, allocations: 43.7 kB / 412.3 MB, free: 22.9 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000225/0.2515, allocations: 255.5 kB / 412.6 MB, free: 22.61 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.401e-05/0.2515, allocations: 12.44 kB / 412.6 MB, free: 22.59 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.948e-05/0.2516, allocations: 20 kB / 412.6 MB, free: 22.57 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000593/0.2521, allocations: 310.5 kB / 412.9 MB, free: 22.25 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.042e-05/0.2522, allocations: 4 kB / 412.9 MB, free: 22.25 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.633e-05/0.2522, allocations: 4 kB / 412.9 MB, free: 22.25 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.322e-06/0.2522, allocations: 4 kB / 412.9 MB, free: 22.24 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006878/0.2529, allocations: 289.5 kB / 413.2 MB, free: 21.96 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001357/0.2543, allocations: 1.077 MB / 414.3 MB, free: 20.8 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001881/0.2562, allocations: 490.2 kB / 414.8 MB, free: 20.31 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000381/0.2566, allocations: 156.8 kB / 414.9 MB, free: 20.16 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.982e-05/0.2566, allocations: 3.984 kB / 414.9 MB, free: 20.15 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.238e-05/0.2566, allocations: 38.52 kB / 415 MB, free: 20.11 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 3.436e-06/0.2567, allocations: 0 / 415 MB, free: 20.11 MB / 298.7 MB Notification: Performance of matching and sorting (n=14): time 0.004896/0.2616, allocations: 1.12 MB / 416.1 MB, free: 18.96 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.786e-05/0.2616, allocations: 59.41 kB / 416.2 MB, free: 18.89 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001957/0.2618, allocations: 212.2 kB / 416.4 MB, free: 18.66 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.745e-05/0.2618, allocations: 29.7 kB / 416.4 MB, free: 18.63 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.891e-05/0.2619, allocations: 160.1 kB / 416.5 MB, free: 18.47 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.903e-05/0.262, allocations: 47.28 kB / 416.6 MB, free: 18.42 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.357e-05/0.262, allocations: 8 kB / 416.6 MB, free: 18.41 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.476e-05/0.2621, allocations: 326.8 kB / 416.9 MB, free: 18.09 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003158/0.2624, allocations: 115.9 kB / 417 MB, free: 17.97 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000304/0.2627, allocations: 139.7 kB / 417.2 MB, free: 17.83 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003142/0.263, allocations: 112 kB / 417.3 MB, free: 17.72 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.868e-06/0.263, allocations: 0 / 417.3 MB, free: 17.72 MB / 298.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.002847/0.2659, allocations: 0.693 MB / 418 MB, free: 17.02 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.101e-05/0.2659, allocations: 14.59 kB / 418 MB, free: 17.01 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.593e-06/0.2659, allocations: 0 / 418 MB, free: 17.01 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006775/0.2666, allocations: 236.7 kB / 418.2 MB, free: 16.77 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000159/0.2668, allocations: 31.98 kB / 418.2 MB, free: 16.74 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005936/0.2727, allocations: 2.611 MB / 420.9 MB, free: 14 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003048/0.2731, allocations: 43.8 kB / 420.9 MB, free: 13.96 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.825e-05/0.2731, allocations: 12.05 kB / 420.9 MB, free: 13.95 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0001272/0.2732, allocations: 133.8 kB / 421 MB, free: 13.81 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.284e-05/0.2733, allocations: 15.81 kB / 421.1 MB, free: 13.79 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.949e-05/0.2733, allocations: 25.52 kB / 421.1 MB, free: 13.77 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.635e-06/0.2733, allocations: 4 kB / 421.1 MB, free: 13.76 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.985e-06/0.2733, allocations: 3.953 kB / 421.1 MB, free: 13.76 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.028e-06/0.2733, allocations: 0 / 421.1 MB, free: 13.76 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002839/0.2736, allocations: 329.3 kB / 421.4 MB, free: 13.39 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.547e-06/0.2736, allocations: 8 kB / 421.4 MB, free: 13.38 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000147/0.2738, allocations: 27.98 kB / 421.4 MB, free: 13.35 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005638/0.2744, allocations: 228.7 kB / 421.7 MB, free: 13.12 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.966e-05/0.2744, allocations: 11.98 kB / 421.7 MB, free: 13.11 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005555/0.28, allocations: 2.599 MB / 424.3 MB, free: 10.38 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.28, allocations: 0 / 424.3 MB, free: 10.38 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003098/0.2831, allocations: 0.9098 MB / 425.2 MB, free: 9.449 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.995e-05/0.2832, allocations: 96.86 kB / 425.3 MB, free: 9.336 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.915e-05/0.2832, allocations: 8.062 kB / 425.3 MB, free: 9.328 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002896/0.2835, allocations: 35.97 kB / 425.3 MB, free: 9.293 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.125e-05/0.2836, allocations: 7.984 kB / 425.3 MB, free: 9.285 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.688e-05/0.2836, allocations: 11.98 kB / 425.3 MB, free: 9.273 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001037/0.2837, allocations: 157.6 kB / 425.5 MB, free: 9.121 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2837, allocations: 0 / 425.5 MB, free: 9.121 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004413/0.2841, allocations: 79.84 kB / 425.6 MB, free: 9.043 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001289/0.2843, allocations: 111.1 kB / 425.7 MB, free: 8.926 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001449/0.2857, allocations: 466.5 kB / 426.1 MB, free: 8.457 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.2857, allocations: 4 kB / 426.1 MB, free: 8.453 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001015/0.2868, allocations: 358.5 kB / 426.5 MB, free: 8.09 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003564/0.2871, allocations: 36.55 kB / 426.5 MB, free: 8.055 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001117/0.2883, allocations: 0.6907 MB / 427.2 MB, free: 7.336 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001437/0.2884, allocations: 0.744 MB / 428 MB, free: 6.566 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.565e-05/0.2885, allocations: 15.44 kB / 428 MB, free: 6.551 MB / 298.7 MB Notification: Performance of SimCode: time 3.91e-07/0.2885, allocations: 0 / 428 MB, free: 6.551 MB / 298.7 MB Notification: Performance of Templates: time 0.004472/0.293, allocations: 4.062 MB / 432 MB, free: 2.5 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OvervoltageProtection.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OvervoltageProtection.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OvervoltageProtection --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OvervoltageProtection.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches