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.0009678/0.0009679, allocations: 195.7 kB / 18.07 MB, free: 3.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.23/1.23, allocations: 226.5 MB / 245.3 MB, free: 6.496 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007364/0.0007364, allocations: 93.83 kB / 297.4 MB, free: 6.676 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002495/0.0002498, allocations: 8 kB / 357.4 MB, free: 10.74 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1839/0.1842, allocations: 51.29 MB / 408.7 MB, free: 27.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08437/0.2686, allocations: 79.64 MB / 488.3 MB, free: 11.95 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000212/0.2689, allocations: 71.97 kB / 488.4 MB, free: 11.88 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01368/0.2826, allocations: 4.931 MB / 493.3 MB, free: 6.938 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.763e-06/0.2826, allocations: 0 / 493.3 MB, free: 6.938 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.745e-05/0.2826, allocations: 4 kB / 493.3 MB, free: 6.934 MB / 362.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.0009657/0.2836, allocations: 0.5536 MB / 493.9 MB, free: 6.328 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.928e-05/0.2836, allocations: 12.03 kB / 493.9 MB, free: 6.316 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001743/0.2838, allocations: 40.55 kB / 493.9 MB, free: 6.277 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002787/0.2841, allocations: 256.8 kB / 494.2 MB, free: 5.984 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.597e-05/0.2841, allocations: 12.81 kB / 494.2 MB, free: 5.973 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.174e-05/0.2842, allocations: 20.38 kB / 494.2 MB, free: 5.953 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006508/0.2849, allocations: 311.1 kB / 494.5 MB, free: 5.633 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.001e-05/0.2849, allocations: 192 / 494.5 MB, free: 5.633 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.17e-05/0.2849, allocations: 11.94 kB / 494.5 MB, free: 5.621 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.943e-06/0.2849, allocations: 8 kB / 494.5 MB, free: 5.613 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007453/0.2857, allocations: 285.5 kB / 494.8 MB, free: 5.332 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001591/0.2873, allocations: 1.081 MB / 495.9 MB, free: 4.172 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001818/0.2891, allocations: 486.2 kB / 496.4 MB, free: 3.688 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003766/0.2895, allocations: 156.8 kB / 496.5 MB, free: 3.531 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.487e-05/0.2895, allocations: 4 kB / 496.5 MB, free: 3.527 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.666e-05/0.2896, allocations: 30.56 kB / 496.5 MB, free: 3.488 MB / 362.7 MB Notification: Performance of pre-optimization done (n=14): time 3.637e-06/0.2896, allocations: 3.984 kB / 496.5 MB, free: 3.484 MB / 362.7 MB Notification: Performance of matching and sorting (n=14): time 0.005217/0.2948, allocations: 1.155 MB / 497.7 MB, free: 2.305 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.149e-05/0.2949, allocations: 59.41 kB / 497.8 MB, free: 2.234 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002423/0.2951, allocations: 216.1 kB / 498 MB, free: 2.012 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.928e-05/0.2952, allocations: 29.7 kB / 498 MB, free: 1.977 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.126e-05/0.2952, allocations: 164.1 kB / 498.2 MB, free: 1.812 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.105e-05/0.2953, allocations: 47.2 kB / 498.2 MB, free: 1.766 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.633e-05/0.2953, allocations: 4 kB / 498.2 MB, free: 1.762 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001125/0.2954, allocations: 330.8 kB / 498.5 MB, free: 1.43 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000354/0.2958, allocations: 111.9 kB / 498.6 MB, free: 1.32 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000346/0.2962, allocations: 137.6 kB / 498.8 MB, free: 1.18 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007366/0.2969, allocations: 240.2 kB / 499 MB, free: 0.9414 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.2969, allocations: 4 kB / 499 MB, free: 0.9375 MB / 362.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.00298/0.2999, allocations: 0.7008 MB / 499.7 MB, free: 232 kB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.803e-05/0.2999, allocations: 4 kB / 499.7 MB, free: 228 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.071e-06/0.3, allocations: 4 kB / 499.7 MB, free: 224 kB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007377/0.3007, allocations: 232.7 kB / 499.9 MB, free: 15.99 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001717/0.3009, allocations: 31.98 kB / 500 MB, free: 15.96 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006414/0.3073, allocations: 2.614 MB / 0.4908 GB, free: 13.21 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002871/0.3076, allocations: 43.81 kB / 0.4909 GB, free: 13.16 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.888e-05/0.3077, allocations: 4 kB / 0.4909 GB, free: 13.16 MB / 378.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.0001622/0.3078, allocations: 137.8 kB / 0.491 GB, free: 13.02 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.893e-05/0.3079, allocations: 27.64 kB / 0.491 GB, free: 12.99 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.719e-05/0.308, allocations: 25.53 kB / 0.491 GB, free: 12.96 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-06/0.308, allocations: 0 / 0.491 GB, free: 12.96 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.184e-06/0.308, allocations: 0 / 0.491 GB, free: 12.96 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.019e-06/0.308, allocations: 3.984 kB / 0.491 GB, free: 12.96 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003817/0.3084, allocations: 325.3 kB / 0.4914 GB, free: 12.59 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.985e-06/0.3084, allocations: 0 / 0.4914 GB, free: 12.59 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001615/0.3086, allocations: 35.97 kB / 0.4914 GB, free: 12.55 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006429/0.3092, allocations: 236.5 kB / 0.4916 GB, free: 12.32 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.291e-05/0.3093, allocations: 4.094 kB / 0.4916 GB, free: 12.32 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006356/0.3156, allocations: 2.615 MB / 0.4942 GB, free: 9.566 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.3157, allocations: 0 / 0.4942 GB, free: 9.566 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0032/0.3189, allocations: 0.9097 MB / 0.4951 GB, free: 8.637 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001047/0.319, allocations: 104.9 kB / 0.4952 GB, free: 8.516 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.694e-05/0.319, allocations: 8.062 kB / 0.4952 GB, free: 8.508 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002778/0.3193, allocations: 39.91 kB / 0.4952 GB, free: 8.469 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.9e-05/0.3194, allocations: 15.92 kB / 0.4952 GB, free: 8.453 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.093e-05/0.3194, allocations: 4 kB / 0.4952 GB, free: 8.449 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001511/0.3196, allocations: 165.6 kB / 0.4954 GB, free: 8.289 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.3196, allocations: 0 / 0.4954 GB, free: 8.289 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004729/0.3201, allocations: 83.78 kB / 0.4955 GB, free: 8.207 MB / 378.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.0001825/0.3203, allocations: 103.2 kB / 0.4956 GB, free: 8.098 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001576/0.3218, allocations: 494.4 kB / 0.496 GB, free: 7.602 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.3219, allocations: 0 / 0.496 GB, free: 7.602 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001071/0.3229, allocations: 366.4 kB / 0.4964 GB, free: 7.23 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004004/0.3233, allocations: 43.25 kB / 0.4964 GB, free: 7.191 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001334/0.3247, allocations: 0.6804 MB / 0.4971 GB, free: 6.477 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000287/0.325, allocations: 0.7478 MB / 0.4978 GB, free: 5.703 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.373e-05/0.3251, allocations: 15.44 kB / 0.4978 GB, free: 5.688 MB / 378.7 MB Notification: Performance of SimCode: time 3.41e-07/0.3251, allocations: 3.938 kB / 0.4978 GB, free: 5.684 MB / 378.7 MB Notification: Performance of Templates: time 0.006222/0.3313, allocations: 4.068 MB / 0.5018 GB, free: 1.625 MB / 378.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/jenkins1/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