Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Blocks.Examples.SinCosEncoder.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.Blocks.Examples.SinCosEncoder,tolerance=1e-05,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|integrator.y|der1.y|cosB.phi|cosBminus.phi|sinA.phi|sinAminus.phi",fileNamePrefix="Modelica_trunk_cpp_Modelica.Blocks.Examples.SinCosEncoder") translateModel(Modelica.Blocks.Examples.SinCosEncoder,tolerance=1e-05,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|integrator.y|der1.y|cosB.phi|cosBminus.phi|sinA.phi|sinAminus.phi",fileNamePrefix="Modelica_trunk_cpp_Modelica.Blocks.Examples.SinCosEncoder") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001419/0.00142, allocations: 198.7 kB / 17.38 MB, free: 4.41 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.526/1.526, allocations: 226.5 MB / 244.7 MB, free: 6.484 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007753/0.000775, allocations: 93.94 kB / 296.8 MB, free: 6.699 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002356/0.0002358, allocations: 8 kB / 356.7 MB, free: 10.71 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2484/0.2487, allocations: 51.29 MB / 408 MB, free: 27.72 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.002026/0.2508, allocations: 1.843 MB / 409.9 MB, free: 25.87 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001033/0.2518, allocations: 0.6815 MB / 410.6 MB, free: 25.18 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001266/0.252, allocations: 7.938 kB / 410.6 MB, free: 25.18 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001705/0.2521, allocations: 31.66 kB / 410.6 MB, free: 25.14 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001695/0.2523, allocations: 36.55 kB / 410.6 MB, free: 25.11 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002344/0.2526, allocations: 81.06 kB / 410.7 MB, free: 25.03 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002249/0.2528, allocations: 211.7 kB / 410.9 MB, free: 24.82 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002247/0.253, allocations: 114 kB / 411 MB, free: 24.72 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001746/0.2532, allocations: 67.66 kB / 411.1 MB, free: 24.65 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000123/0.2533, allocations: 83.55 kB / 411.2 MB, free: 24.57 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.803e-05/0.2534, allocations: 7.938 kB / 411.2 MB, free: 24.56 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.188e-05/0.2535, allocations: 23.98 kB / 411.2 MB, free: 24.54 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.151e-05/0.2535, allocations: 43.77 kB / 411.3 MB, free: 24.5 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.763e-05/0.2536, allocations: 101.2 kB / 411.4 MB, free: 24.39 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001782/0.2538, allocations: 176.5 kB / 411.5 MB, free: 24.22 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.2538, allocations: 0 / 411.5 MB, free: 24.22 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.525e-06/0.2538, allocations: 0 / 411.5 MB, free: 24.22 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.948e-06/0.2538, allocations: 0 / 411.5 MB, free: 24.22 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.0007682/0.2546, allocations: 0.499 MB / 412 MB, free: 23.67 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.14e-05/0.2547, allocations: 16.03 kB / 412 MB, free: 23.66 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001365/0.2548, allocations: 32.64 kB / 412.1 MB, free: 23.62 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002392/0.255, allocations: 247.6 kB / 412.3 MB, free: 23.34 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.697e-05/0.2551, allocations: 16.81 kB / 412.3 MB, free: 23.33 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.459e-05/0.2551, allocations: 32.25 kB / 412.4 MB, free: 23.3 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004068/0.2555, allocations: 266.9 kB / 412.6 MB, free: 23.02 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.558e-05/0.2556, allocations: 0 / 412.6 MB, free: 23.02 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.254e-05/0.2556, allocations: 8 kB / 412.6 MB, free: 23.01 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.203e-05/0.2556, allocations: 8.438 kB / 412.6 MB, free: 23 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003967/0.256, allocations: 205.5 kB / 412.8 MB, free: 22.8 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009751/0.257, allocations: 0.8301 MB / 413.7 MB, free: 21.91 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003364/0.2574, allocations: 182.5 kB / 413.8 MB, free: 21.73 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001913/0.2576, allocations: 116.7 kB / 414 MB, free: 21.61 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.78e-05/0.2577, allocations: 89.09 kB / 414 MB, free: 21.5 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.969e-05/0.2577, allocations: 38.88 kB / 414.1 MB, free: 21.46 MB / 298.7 MB Notification: Performance of pre-optimization done (n=22): time 1.323e-06/0.2577, allocations: 0 / 414.1 MB, free: 21.46 MB / 298.7 MB Notification: Performance of matching and sorting (n=23): time 0.001281/0.259, allocations: 0.752 MB / 414.8 MB, free: 20.65 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.917e-05/0.259, allocations: 51.41 kB / 414.9 MB, free: 20.59 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001551/0.2592, allocations: 213 kB / 415.1 MB, free: 20.37 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.672e-05/0.2592, allocations: 29.7 kB / 415.1 MB, free: 20.33 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.68e-05/0.2593, allocations: 148.4 kB / 415.3 MB, free: 20.18 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.815e-05/0.2594, allocations: 82.75 kB / 415.4 MB, free: 20.1 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.314e-05/0.2594, allocations: 4 kB / 415.4 MB, free: 20.1 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.893e-05/0.2595, allocations: 338.8 kB / 415.7 MB, free: 19.76 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001739/0.2596, allocations: 87.88 kB / 415.8 MB, free: 19.67 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001823/0.2598, allocations: 123.4 kB / 415.9 MB, free: 19.54 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003516/0.2602, allocations: 233.4 kB / 416.1 MB, free: 19.3 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.073e-06/0.2602, allocations: 0 / 416.1 MB, free: 19.3 MB / 298.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0004409/0.2606, allocations: 285.2 kB / 416.4 MB, free: 19.02 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.029e-05/0.2607, allocations: 8 kB / 416.4 MB, free: 19.01 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.063e-06/0.2607, allocations: 0 / 416.4 MB, free: 19.01 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.939e-05/0.2607, allocations: 4 kB / 416.4 MB, free: 19 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002643/0.261, allocations: 63.95 kB / 416.5 MB, free: 18.94 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.075e-05/0.261, allocations: 4 kB / 416.5 MB, free: 18.94 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000117/0.2611, allocations: 15.98 kB / 416.5 MB, free: 18.92 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.971e-05/0.2611, allocations: 12 kB / 416.5 MB, free: 18.91 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 1 (integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (30): * Single equations (assignments): 30 * 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 0.000105/0.2613, allocations: 141.7 kB / 416.6 MB, free: 18.76 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.862e-05/0.2613, allocations: 23.72 kB / 416.7 MB, free: 18.74 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005183/0.2618, allocations: 307 kB / 417 MB, free: 18.44 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.098e-06/0.2618, allocations: 4 kB / 417 MB, free: 18.43 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/0.2619, allocations: 0 / 417 MB, free: 18.43 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.304e-06/0.2619, allocations: 4.047 kB / 417 MB, free: 18.43 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008857/0.2628, allocations: 0.6943 MB / 417.7 MB, free: 17.68 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.2628, allocations: 3.938 kB / 417.7 MB, free: 17.67 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002457/0.263, allocations: 67.92 kB / 417.7 MB, free: 17.61 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.808e-06/0.263, allocations: 3.984 kB / 417.7 MB, free: 17.6 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.777e-05/0.2631, allocations: 8 kB / 417.7 MB, free: 17.59 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.345e-06/0.2631, allocations: 3.938 kB / 417.8 MB, free: 17.59 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.2631, allocations: 4 kB / 417.8 MB, free: 17.59 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006437/0.2637, allocations: 0.4886 MB / 418.2 MB, free: 17.07 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.592e-05/0.2638, allocations: 112.9 kB / 418.4 MB, free: 16.95 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.263e-05/0.2639, allocations: 8 kB / 418.4 MB, free: 16.94 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001383/0.264, allocations: 23.92 kB / 418.4 MB, free: 16.91 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.37e-05/0.2641, allocations: 19.97 kB / 418.4 MB, free: 16.89 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.258e-05/0.2641, allocations: 4 kB / 418.4 MB, free: 16.89 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001019/0.2642, allocations: 156.5 kB / 418.6 MB, free: 16.74 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2642, allocations: 0 / 418.6 MB, free: 16.74 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000279/0.2645, allocations: 44 kB / 418.6 MB, free: 16.7 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 5 (cosB.phi,cosBminus.phi,sinA.phi,sinAminus.phi,der1.u) * 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 (28): * Single equations (assignments): 28 * 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 Backend phase and start with SimCode phase: time 0.0001799/0.2647, allocations: 111.2 kB / 418.7 MB, free: 16.58 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004469/0.2651, allocations: 233.8 kB / 418.9 MB, free: 16.35 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.2651, allocations: 0 / 418.9 MB, free: 16.35 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000195/0.2653, allocations: 132 kB / 419.1 MB, free: 16.22 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003409/0.2657, allocations: 24.44 kB / 419.1 MB, free: 16.2 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001011/0.2667, allocations: 0.8533 MB / 419.9 MB, free: 15.31 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001882/0.2669, allocations: 0.7681 MB / 420.7 MB, free: 14.52 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.991e-05/0.267, allocations: 23.44 kB / 420.7 MB, free: 14.49 MB / 298.7 MB Notification: Performance of SimCode: time 1.462e-06/0.267, allocations: 0 / 420.7 MB, free: 14.49 MB / 298.7 MB Notification: Performance of Templates: time 0.004162/0.2712, allocations: 2.817 MB / 423.6 MB, free: 11.68 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Blocks.Examples.SinCosEncoder.makefile (rm -f Modelica_trunk_cpp_Modelica.Blocks.Examples.SinCosEncoder.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Blocks.Examples.SinCosEncoder.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Blocks.Examples.SinCosEncoder.pipe >> ../files/Modelica_trunk_cpp_Modelica.Blocks.Examples.SinCosEncoder.sim & ./Modelica_trunk_cpp_Modelica.Blocks.Examples.SinCosEncoder --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Blocks.Examples.SinCosEncoder.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Blocks.Examples.SinCosEncoder_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/SinCosEncoder/SinCosEncoder.csv","../files/Modelica_trunk_cpp_Modelica.Blocks.Examples.SinCosEncoder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches