Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.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.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock.y|sample1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock.y|sample1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001938/0.001938, allocations: 196.9 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.401/1.401, allocations: 226.6 MB / 244.3 MB, free: 8.223 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000944/0.0009441, allocations: 94.12 kB / 296.4 MB, free: 7.004 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002221/0.0002224, allocations: 4 kB / 356.2 MB, free: 11.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2504/0.2506, allocations: 51.3 MB / 407.5 MB, free: 27.84 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects): time 0.001688/0.2524, allocations: 1.526 MB / 409 MB, free: 26.31 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009422/0.2534, allocations: 0.6775 MB / 409.7 MB, free: 25.63 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001042/0.2535, allocations: 7.938 kB / 409.7 MB, free: 25.62 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001397/0.2536, allocations: 11.86 kB / 409.7 MB, free: 25.61 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001339/0.2538, allocations: 13.27 kB / 409.7 MB, free: 25.6 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004409/0.2542, allocations: 132.3 kB / 409.9 MB, free: 25.47 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001394/0.2544, allocations: 121.7 kB / 410 MB, free: 25.36 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001209/0.2545, allocations: 46.2 kB / 410 MB, free: 25.31 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001254/0.2546, allocations: 43.8 kB / 410.1 MB, free: 25.27 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.623e-05/0.2547, allocations: 49.06 kB / 410.1 MB, free: 25.22 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.151e-05/0.2547, allocations: 4 kB / 410.1 MB, free: 25.21 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.192e-05/0.2548, allocations: 39.97 kB / 410.2 MB, free: 25.18 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.02e-05/0.2549, allocations: 28.97 kB / 410.2 MB, free: 25.15 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.225e-05/0.2549, allocations: 49.58 kB / 410.2 MB, free: 25.09 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001411/0.2551, allocations: 143.6 kB / 410.4 MB, free: 24.95 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.578e-06/0.2551, allocations: 3.25 kB / 410.4 MB, free: 24.95 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.303e-06/0.2551, allocations: 0 / 410.4 MB, free: 24.95 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.618e-06/0.2551, allocations: 0 / 410.4 MB, free: 24.95 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: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.0005757/0.2557, allocations: 450.3 kB / 410.8 MB, free: 24.47 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.047e-05/0.2558, allocations: 12.03 kB / 410.8 MB, free: 24.46 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001549/0.2559, allocations: 31.7 kB / 410.9 MB, free: 24.43 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002156/0.2561, allocations: 238.7 kB / 411.1 MB, free: 24.15 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.672e-05/0.2562, allocations: 4.188 kB / 411.1 MB, free: 24.15 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.95e-05/0.2562, allocations: 14.77 kB / 411.1 MB, free: 24.14 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006585/0.2569, allocations: 351 kB / 411.5 MB, free: 23.78 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.488e-05/0.2569, allocations: 7.984 kB / 411.5 MB, free: 23.77 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.723e-05/0.2569, allocations: 4 kB / 411.5 MB, free: 23.77 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.42e-06/0.2569, allocations: 0 / 411.5 MB, free: 23.77 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002206/0.2571, allocations: 91.94 kB / 411.6 MB, free: 23.68 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003179/0.2575, allocations: 353.5 kB / 411.9 MB, free: 23.28 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004486/0.2579, allocations: 285.7 kB / 412.2 MB, free: 22.96 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001705/0.2581, allocations: 105.7 kB / 412.3 MB, free: 22.86 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004826/0.2586, allocations: 0.5856 MB / 412.9 MB, free: 22.14 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.762e-05/0.2586, allocations: 34.56 kB / 412.9 MB, free: 22.1 MB / 298.7 MB Notification: Performance of pre-optimization done (n=19): time 1.543e-06/0.2586, allocations: 0 / 412.9 MB, free: 22.1 MB / 298.7 MB Notification: Performance of matching and sorting (n=19): time 0.0005305/0.2592, allocations: 255.9 kB / 413.2 MB, free: 21.84 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.575e-05/0.2592, allocations: 118.8 kB / 413.3 MB, free: 21.7 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001305/0.2594, allocations: 195.1 kB / 413.5 MB, free: 21.5 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.341e-05/0.2594, allocations: 29.83 kB / 413.5 MB, free: 21.46 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.441e-05/0.2594, allocations: 112.5 kB / 413.6 MB, free: 21.35 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.015e-05/0.2595, allocations: 19.88 kB / 413.6 MB, free: 21.33 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.72e-06/0.2595, allocations: 4 kB / 413.6 MB, free: 21.32 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.413e-05/0.2595, allocations: 326.8 kB / 413.9 MB, free: 21 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.364e-05/0.2596, allocations: 40.28 kB / 414 MB, free: 20.96 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001297/0.2598, allocations: 168.7 kB / 414.1 MB, free: 20.73 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001051/0.2599, allocations: 71.94 kB / 414.2 MB, free: 20.66 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.2599, allocations: 0 / 414.2 MB, free: 20.66 MB / 298.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.000281/0.2602, allocations: 217.1 kB / 414.4 MB, free: 20.45 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.521e-05/0.2602, allocations: 7.938 kB / 414.4 MB, free: 20.44 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.594e-06/0.2602, allocations: 8 kB / 414.4 MB, free: 20.43 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.538e-05/0.2602, allocations: 4 kB / 414.5 MB, free: 20.43 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000135/0.2604, allocations: 52.47 kB / 414.5 MB, free: 20.38 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.979e-06/0.2604, allocations: 15.97 kB / 414.5 MB, free: 20.36 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001034/0.2605, allocations: 15.84 kB / 414.5 MB, free: 20.34 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.373e-05/0.2605, allocations: 16 kB / 414.5 MB, free: 20.33 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 6 (sample1.noise.seedState[3],$CLKPRE.sample1.noise.seedState[3],sample1.noise.seedState[2],$CLKPRE.sample1.noise.seedState[2],sample1.noise.seedState[1],$CLKPRE.sample1.noise.seedState[1]) * Number of discrete states: 0 () * Number of clocked states: 3 (sample1.noise.seedState[3],sample1.noise.seedState[2],sample1.noise.seedState[1]) * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 22 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.914e-05/0.2606, allocations: 145.7 kB / 414.7 MB, free: 20.18 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002561/0.2609, allocations: 165.4 kB / 414.9 MB, free: 20.01 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003148/0.2612, allocations: 187.3 kB / 415 MB, free: 19.82 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.208e-06/0.2613, allocations: 0 / 415 MB, free: 19.82 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.53e-06/0.2613, allocations: 7.953 kB / 415 MB, free: 19.81 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.607e-06/0.2613, allocations: 0 / 415 MB, free: 19.81 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001495/0.2614, allocations: 229.5 kB / 415.3 MB, free: 19.54 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.829e-06/0.2614, allocations: 4 kB / 415.3 MB, free: 19.53 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001314/0.2616, allocations: 31.98 kB / 415.3 MB, free: 19.5 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.186e-06/0.2616, allocations: 0 / 415.3 MB, free: 19.5 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.165e-05/0.2616, allocations: 11.92 kB / 415.3 MB, free: 19.49 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/0.2616, allocations: 4 kB / 415.3 MB, free: 19.48 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.2616, allocations: 0 / 415.3 MB, free: 19.48 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003168/0.2619, allocations: 303.5 kB / 415.6 MB, free: 19.17 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.608e-05/0.262, allocations: 116.8 kB / 415.7 MB, free: 19.04 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.875e-05/0.262, allocations: 11.94 kB / 415.7 MB, free: 19.03 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001257/0.2622, allocations: 19.98 kB / 415.8 MB, free: 19.01 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.929e-05/0.2622, allocations: 0 / 415.8 MB, free: 19.01 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.043e-05/0.2622, allocations: 7.984 kB / 415.8 MB, free: 19 MB / 298.7 MB Notification: Performance of sorting global known variables: time 8.313e-05/0.2623, allocations: 139.2 kB / 415.9 MB, free: 18.86 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2623, allocations: 0 / 415.9 MB, free: 18.86 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002708/0.2626, allocations: 32 kB / 415.9 MB, free: 18.83 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 3 (sample1.noise.seedState[1],sample1.noise.seedState[2],sample1.noise.seedState[3]) * Number of discrete states: 0 () * Number of clocked states: 3 (sample1.noise.seedState[1],sample1.noise.seedState[2],sample1.noise.seedState[3]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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 Backend phase and start with SimCode phase: time 0.0001388/0.2628, allocations: 123.1 kB / 416.1 MB, free: 18.7 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000289/0.2631, allocations: 144.9 kB / 416.2 MB, free: 18.56 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.2631, allocations: 0 / 416.2 MB, free: 18.56 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.07e-05/0.2631, allocations: 20.05 kB / 416.2 MB, free: 18.54 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005346/0.2637, allocations: 153.9 kB / 416.4 MB, free: 18.39 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005242/0.2642, allocations: 396.7 kB / 416.8 MB, free: 17.97 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001662/0.2644, allocations: 0.7441 MB / 417.5 MB, free: 17.2 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.641e-05/0.2644, allocations: 15.44 kB / 417.5 MB, free: 17.18 MB / 298.7 MB Notification: Performance of SimCode: time 2.2e-07/0.2644, allocations: 0 / 417.5 MB, free: 17.18 MB / 298.7 MB Notification: Performance of Templates: time 0.003273/0.2677, allocations: 2.168 MB / 419.7 MB, free: 15.02 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.makefile (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.sim & ./Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/SampleWithADeffects/SampleWithADeffects.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches