Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Blocks.Examples.DemoSignalCharacteristic.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: "" <> buildModelFMU(Modelica.Blocks.Examples.DemoSignalCharacteristic,fileNamePrefix="Modelica_trunk_cpp_Modelica_Blocks_Examples_DemoSignalCharacteristic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.DemoSignalCharacteristic,fileNamePrefix="Modelica_trunk_cpp_Modelica_Blocks_Examples_DemoSignalCharacteristic",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001015/0.001015, allocations: 192.8 kB / 17.38 MB, free: 4.312 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.292/1.292, allocations: 226.5 MB / 244.7 MB, free: 6.461 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007459/0.0007461, allocations: 97.28 kB / 296.7 MB, free: 6.672 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002398/0.00024, allocations: 4 kB / 356.8 MB, free: 10.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3176/0.3178, allocations: 51.29 MB / 408.1 MB, free: 27.66 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemoSignalCharacteristic): time 0.002095/0.32, allocations: 1.886 MB / 410 MB, free: 25.77 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001211/0.3212, allocations: 0.8411 MB / 410.9 MB, free: 24.93 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001327/0.3214, allocations: 7.938 kB / 410.9 MB, free: 24.92 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001221/0.3215, allocations: 19.73 kB / 410.9 MB, free: 24.9 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002864/0.3218, allocations: 86.27 kB / 411 MB, free: 24.82 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002336/0.322, allocations: 109.3 kB / 411.1 MB, free: 24.71 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003215/0.3224, allocations: 366.9 kB / 411.4 MB, free: 24.35 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002104/0.3226, allocations: 116.5 kB / 411.5 MB, free: 24.24 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002225/0.3228, allocations: 137.7 kB / 411.7 MB, free: 24.11 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000188/0.323, allocations: 159.2 kB / 411.8 MB, free: 23.95 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.068e-05/0.3231, allocations: 16 kB / 411.8 MB, free: 23.94 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.78e-05/0.3231, allocations: 28 kB / 411.9 MB, free: 23.91 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.135e-05/0.3232, allocations: 67.61 kB / 411.9 MB, free: 23.84 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001238/0.3233, allocations: 176.2 kB / 412.1 MB, free: 23.67 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002235/0.3236, allocations: 284.6 kB / 412.4 MB, free: 23.39 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.422e-06/0.3236, allocations: 3.938 kB / 412.4 MB, free: 23.39 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.3236, allocations: 0 / 412.4 MB, free: 23.39 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.972e-06/0.3236, allocations: 0 / 412.4 MB, free: 23.39 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.001184/0.3248, allocations: 0.6432 MB / 413 MB, free: 22.68 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.91e-05/0.3248, allocations: 8.031 kB / 413 MB, free: 22.68 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.917e-05/0.3249, allocations: 54.73 kB / 413.1 MB, free: 22.61 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000279/0.3252, allocations: 76.44 kB / 413.2 MB, free: 22.54 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004531/0.3256, allocations: 376.3 kB / 413.5 MB, free: 22.14 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.353e-05/0.3257, allocations: 24.8 kB / 413.6 MB, free: 22.11 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.454e-05/0.3257, allocations: 28.38 kB / 413.6 MB, free: 22.08 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004778/0.3262, allocations: 263.3 kB / 413.8 MB, free: 21.82 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.679e-05/0.3262, allocations: 3.938 kB / 413.9 MB, free: 21.82 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.704e-05/0.3263, allocations: 12 kB / 413.9 MB, free: 21.8 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.642e-06/0.3263, allocations: 4 kB / 413.9 MB, free: 21.8 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004512/0.3267, allocations: 201.6 kB / 414.1 MB, free: 21.6 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00113/0.3279, allocations: 0.8062 MB / 414.9 MB, free: 20.75 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004406/0.3283, allocations: 202.7 kB / 415.1 MB, free: 20.54 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002171/0.3286, allocations: 104.2 kB / 415.2 MB, free: 20.44 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.947e-05/0.3286, allocations: 7.938 kB / 415.2 MB, free: 20.43 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000419/0.329, allocations: 248.9 kB / 415.4 MB, free: 20.17 MB / 298.7 MB Notification: Performance of pre-optimization done (n=28): time 1.733e-06/0.329, allocations: 0 / 415.4 MB, free: 20.17 MB / 298.7 MB Notification: Performance of matching and sorting (n=28): time 0.0008434/0.3299, allocations: 411.1 kB / 415.8 MB, free: 19.77 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.321e-05/0.3299, allocations: 63.41 kB / 415.9 MB, free: 19.69 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002723/0.3302, allocations: 312.5 kB / 416.2 MB, free: 19.38 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.756e-05/0.3303, allocations: 41.64 kB / 416.2 MB, free: 19.33 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.745e-05/0.3303, allocations: 184.5 kB / 416.4 MB, free: 19.15 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.925e-05/0.3304, allocations: 82.89 kB / 416.5 MB, free: 19.07 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.666e-05/0.3304, allocations: 16 kB / 416.5 MB, free: 19.05 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.443e-05/0.3305, allocations: 346.7 kB / 416.8 MB, free: 18.7 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002431/0.3308, allocations: 104.7 kB / 416.9 MB, free: 18.6 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002851/0.331, allocations: 250.3 kB / 417.2 MB, free: 18.29 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005289/0.3316, allocations: 394.5 kB / 417.6 MB, free: 17.84 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.3316, allocations: 0 / 417.6 MB, free: 17.84 MB / 298.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006814/0.3323, allocations: 453.8 kB / 418 MB, free: 17.39 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.104e-05/0.3323, allocations: 33.7 kB / 418.1 MB, free: 17.35 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.835e-06/0.3323, allocations: 7.984 kB / 418.1 MB, free: 17.34 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.736e-05/0.3324, allocations: 4 kB / 418.1 MB, free: 17.34 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002618/0.3326, allocations: 75.89 kB / 418.1 MB, free: 17.26 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.198e-05/0.3326, allocations: 11.94 kB / 418.2 MB, free: 17.25 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002548/0.3329, allocations: 51.66 kB / 418.2 MB, free: 17.2 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.691e-05/0.3329, allocations: 20 kB / 418.2 MB, free: 17.18 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000143/0.3331, allocations: 171.3 kB / 418.4 MB, free: 17 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.911e-05/0.3331, allocations: 31.62 kB / 418.4 MB, free: 16.97 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006251/0.3338, allocations: 329.3 kB / 418.7 MB, free: 16.64 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.568e-06/0.3338, allocations: 4 kB / 418.7 MB, free: 16.64 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.888e-06/0.3338, allocations: 4 kB / 418.8 MB, free: 16.64 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.719e-06/0.3338, allocations: 0 / 418.8 MB, free: 16.64 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002574/0.3341, allocations: 369.2 kB / 419.1 MB, free: 16.23 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.3341, allocations: 0 / 419.1 MB, free: 16.23 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002457/0.3343, allocations: 43.91 kB / 419.2 MB, free: 16.18 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.234e-06/0.3343, allocations: 0 / 419.2 MB, free: 16.18 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.497e-05/0.3344, allocations: 11.98 kB / 419.2 MB, free: 16.17 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.924e-06/0.3344, allocations: 0 / 419.2 MB, free: 16.17 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.3344, allocations: 0 / 419.2 MB, free: 16.17 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008334/0.3352, allocations: 494.2 kB / 419.6 MB, free: 15.67 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.487e-05/0.3353, allocations: 108.7 kB / 419.8 MB, free: 15.54 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.868e-05/0.3353, allocations: 8.062 kB / 419.8 MB, free: 15.54 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002236/0.3356, allocations: 27.97 kB / 419.8 MB, free: 15.51 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.823e-05/0.3357, allocations: 27.95 kB / 419.8 MB, free: 15.48 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.227e-05/0.3357, allocations: 15.98 kB / 419.8 MB, free: 15.46 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001687/0.3359, allocations: 227 kB / 420.1 MB, free: 15.25 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3359, allocations: 3.938 kB / 420.1 MB, free: 15.24 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002867/0.3362, allocations: 71.84 kB / 420.1 MB, free: 15.17 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001028/0.3372, allocations: 1.023 MB / 421.2 MB, free: 14.12 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000569/0.3378, allocations: 344 kB / 421.5 MB, free: 13.77 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.3378, allocations: 0 / 421.5 MB, free: 13.77 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002573/0.3381, allocations: 136 kB / 421.6 MB, free: 13.64 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003557/0.3384, allocations: 51.41 kB / 421.7 MB, free: 13.59 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002631/0.3411, allocations: 2.104 MB / 423.8 MB, free: 11.38 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001913/0.3413, allocations: 0.7918 MB / 424.6 MB, free: 10.56 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000171/0.3415, allocations: 122.6 kB / 424.7 MB, free: 10.44 MB / 298.7 MB Notification: Performance of SimCode: time 2.51e-07/0.3415, allocations: 0 / 424.7 MB, free: 10.44 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.835/3.176, allocations: 4.872 MB / 429.6 MB, free: 5.559 MB / 298.7 MB (rm -f Modelica_trunk_cpp_Modelica.Blocks.Examples.DemoSignalCharacteristic.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Blocks.Examples.DemoSignalCharacteristic.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Blocks.Examples.DemoSignalCharacteristic.pipe >> ../files/Modelica_trunk_cpp_Modelica.Blocks.Examples.DemoSignalCharacteristic.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Modelica_trunk_cpp_Modelica_Blocks_Examples_DemoSignalCharacteristic_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Blocks_Examples_DemoSignalCharacteristic.fmu > Modelica_trunk_cpp_Modelica.Blocks.Examples.DemoSignalCharacteristic.pipe 2>&1)