Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.DemoSignalCharacteristic.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Blocks.Examples.DemoSignalCharacteristic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.DemoSignalCharacteristic") translateModel(Modelica.Blocks.Examples.DemoSignalCharacteristic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.DemoSignalCharacteristic") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001546/0.001546, allocations: 201.6 kB / 17.43 MB, free: 4.375 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.412/1.412, allocations: 229.5 MB / 247.7 MB, free: 6.328 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009166/0.0009168, allocations: 99.45 kB / 299.9 MB, free: 5.34 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002652/0.0002653, allocations: 8 kB / 360.6 MB, free: 8.48 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2658/0.2661, allocations: 51.4 MB / 412 MB, free: 25.9 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemoSignalCharacteristic): time 0.001832/0.268, allocations: 1.894 MB / 413.9 MB, free: 24 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001204/0.2692, allocations: 1.317 MB / 415.3 MB, free: 22.57 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001265/0.2693, allocations: 7.938 kB / 415.3 MB, free: 22.56 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001086/0.2694, allocations: 19.73 kB / 415.3 MB, free: 22.54 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002785/0.2697, allocations: 84.14 kB / 415.4 MB, free: 22.46 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002416/0.27, allocations: 135.8 kB / 415.5 MB, free: 22.33 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002491/0.2702, allocations: 390.9 kB / 415.9 MB, free: 21.95 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001902/0.2704, allocations: 113.8 kB / 416 MB, free: 21.84 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002027/0.2707, allocations: 143.3 kB / 416.1 MB, free: 21.7 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001812/0.2708, allocations: 159.1 kB / 416.3 MB, free: 21.54 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.71e-05/0.2709, allocations: 16 kB / 416.3 MB, free: 21.52 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.569e-05/0.271, allocations: 31.98 kB / 416.3 MB, free: 21.49 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.031e-05/0.271, allocations: 63.67 kB / 416.4 MB, free: 21.43 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001136/0.2712, allocations: 180.7 kB / 416.6 MB, free: 21.25 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002645/0.2714, allocations: 376.1 kB / 416.9 MB, free: 20.88 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.111e-06/0.2714, allocations: 0 / 416.9 MB, free: 20.88 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.216e-06/0.2715, allocations: 0 / 416.9 MB, free: 20.88 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.861e-06/0.2715, allocations: 0 / 416.9 MB, free: 20.88 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.001172/0.2726, allocations: 0.6393 MB / 417.6 MB, free: 20.18 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.95e-05/0.2727, allocations: 12.03 kB / 417.6 MB, free: 20.17 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002801/0.273, allocations: 68.44 kB / 417.7 MB, free: 20.1 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004388/0.2734, allocations: 384.3 kB / 418 MB, free: 19.69 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.772e-05/0.2735, allocations: 20.81 kB / 418 MB, free: 19.67 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.814e-05/0.2735, allocations: 28.38 kB / 418.1 MB, free: 19.64 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004604/0.274, allocations: 263.5 kB / 418.3 MB, free: 19.38 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.53e-05/0.274, allocations: 3.938 kB / 418.3 MB, free: 19.38 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.839e-05/0.274, allocations: 15.98 kB / 418.4 MB, free: 19.36 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.592e-06/0.2741, allocations: 4 kB / 418.4 MB, free: 19.36 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004313/0.2745, allocations: 201.6 kB / 418.6 MB, free: 19.16 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001077/0.2756, allocations: 0.8062 MB / 419.4 MB, free: 18.3 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004543/0.2761, allocations: 202.7 kB / 419.6 MB, free: 18.09 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002132/0.2763, allocations: 104.7 kB / 419.7 MB, free: 17.99 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.443e-05/0.2763, allocations: 4 kB / 419.7 MB, free: 17.98 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004114/0.2767, allocations: 258.3 kB / 419.9 MB, free: 17.72 MB / 298.7 MB Notification: Performance of pre-optimization done (n=28): time 1.803e-06/0.2767, allocations: 0 / 419.9 MB, free: 17.72 MB / 298.7 MB Notification: Performance of matching and sorting (n=28): time 0.0008178/0.2776, allocations: 410.7 kB / 420.3 MB, free: 17.32 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.468e-05/0.2776, allocations: 63.39 kB / 420.4 MB, free: 17.24 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000257/0.2779, allocations: 308.6 kB / 420.7 MB, free: 16.93 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.604e-05/0.2779, allocations: 37.7 kB / 420.7 MB, free: 16.89 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.387e-05/0.278, allocations: 188.4 kB / 420.9 MB, free: 16.7 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.565e-05/0.278, allocations: 82.89 kB / 421 MB, free: 16.62 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.425e-05/0.2781, allocations: 7.938 kB / 421 MB, free: 16.61 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.373e-05/0.2781, allocations: 346.8 kB / 421.3 MB, free: 16.27 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002333/0.2784, allocations: 108.7 kB / 421.4 MB, free: 16.16 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002752/0.2787, allocations: 242.3 kB / 421.7 MB, free: 15.86 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004887/0.2792, allocations: 403.6 kB / 422.1 MB, free: 15.4 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.2792, allocations: 0 / 422.1 MB, free: 15.4 MB / 298.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006525/0.2798, allocations: 450.2 kB / 422.5 MB, free: 14.95 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.013e-05/0.2799, allocations: 38.22 kB / 422.5 MB, free: 14.9 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.133e-06/0.2799, allocations: 8 kB / 422.5 MB, free: 14.89 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.73e-05/0.2799, allocations: 11.94 kB / 422.6 MB, free: 14.88 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002699/0.2802, allocations: 75.89 kB / 422.6 MB, free: 14.81 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.061e-05/0.2802, allocations: 7.938 kB / 422.6 MB, free: 14.8 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002425/0.2805, allocations: 47.67 kB / 422.7 MB, free: 14.75 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.599e-05/0.2805, allocations: 16 kB / 422.7 MB, free: 14.74 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 20 ($PRE.rectifiedMean.mean.y_last,rectifiedMean.mean.y_last,$PRE.mean.y_last,mean.y_last,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$PRE.rootMeanSquare.mean.y_last,rootMeanSquare.mean.y_last,$PRE.harmonic.mean1.y_last,harmonic.mean1.y_last,$PRE.harmonic.mean2.y_last,harmonic.mean2.y_last,$whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 44 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001308/0.2806, allocations: 171.5 kB / 422.9 MB, free: 14.56 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.743e-05/0.2807, allocations: 35.56 kB / 422.9 MB, free: 14.53 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005944/0.2813, allocations: 329.2 kB / 423.2 MB, free: 14.2 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.568e-06/0.2813, allocations: 0 / 423.2 MB, free: 14.2 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.2813, allocations: 7.938 kB / 423.2 MB, free: 14.19 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.987e-06/0.2813, allocations: 0 / 423.2 MB, free: 14.19 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002442/0.2816, allocations: 369.2 kB / 423.6 MB, free: 13.78 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.694e-06/0.2816, allocations: 4 kB / 423.6 MB, free: 13.78 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002095/0.2818, allocations: 39.97 kB / 423.6 MB, free: 13.74 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.056e-06/0.2818, allocations: 4 kB / 423.6 MB, free: 13.73 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.177e-05/0.2818, allocations: 7.984 kB / 423.7 MB, free: 13.73 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.555e-06/0.2818, allocations: 4 kB / 423.7 MB, free: 13.72 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.572e-06/0.2818, allocations: 0 / 423.7 MB, free: 13.72 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007925/0.2826, allocations: 487.8 kB / 424.1 MB, free: 13.23 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.231e-05/0.2827, allocations: 112.7 kB / 424.2 MB, free: 13.1 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.291e-05/0.2827, allocations: 11.98 kB / 424.3 MB, free: 13.09 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002053/0.283, allocations: 23.98 kB / 424.3 MB, free: 13.06 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.241e-05/0.2831, allocations: 27.95 kB / 424.3 MB, free: 13.04 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.211e-05/0.2831, allocations: 19.98 kB / 424.3 MB, free: 13.02 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000167/0.2833, allocations: 223.1 kB / 424.5 MB, free: 12.8 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2833, allocations: 0 / 424.5 MB, free: 12.8 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002833/0.2835, allocations: 67.84 kB / 424.6 MB, free: 12.73 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (mean.x,rectifiedMean.mean.x,rootMeanSquare.mean.x,harmonic.mean1.x,harmonic.mean2.x) * Number of discrete variables: 13 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,pulse.T_start,pulse.count,mean.y_last,rectifiedMean.mean.y_last,rootMeanSquare.mean.y_last,harmonic.mean1.y_last,harmonic.mean2.y_last) * Number of discrete states: 6 (pulse.count,mean.x,rectifiedMean.mean.x,rootMeanSquare.mean.x,harmonic.mean1.x,harmonic.mean2.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001208/0.2837, allocations: 119.2 kB / 424.7 MB, free: 12.61 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0006568/0.2843, allocations: 347.9 kB / 425.1 MB, free: 12.25 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.2844, allocations: 4.062 kB / 425.1 MB, free: 12.25 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002598/0.2846, allocations: 130.2 kB / 425.2 MB, free: 12.12 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003376/0.285, allocations: 56.94 kB / 425.3 MB, free: 12.07 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008952/0.2859, allocations: 0.7402 MB / 426 MB, free: 11.3 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001871/0.2861, allocations: 0.784 MB / 426.8 MB, free: 10.49 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001579/0.2862, allocations: 46.89 kB / 426.8 MB, free: 10.44 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.431e-05/0.2863, allocations: 35.42 kB / 426.9 MB, free: 10.41 MB / 298.7 MB Notification: Performance of SimCode: time 4.81e-07/0.2863, allocations: 0 / 426.9 MB, free: 10.41 MB / 298.7 MB Notification: Performance of Templates: time 0.005673/0.292, allocations: 3.247 MB / 430.1 MB, free: 7.18 MB / 298.7 MB make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.DemoSignalCharacteristic.makefile (rm -f Modelica_trunk_Modelica.Blocks.Examples.DemoSignalCharacteristic.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.DemoSignalCharacteristic.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.DemoSignalCharacteristic.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.DemoSignalCharacteristic.sim & ./Modelica_trunk_Modelica.Blocks.Examples.DemoSignalCharacteristic -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.DemoSignalCharacteristic.pipe 2>&1)