Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.SinCosEncoder.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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_4.1.0-beta.om_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_4.1.0-beta.om_Modelica.Blocks.Examples.SinCosEncoder") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001636/0.001636, allocations: 114.3 kB / 18.45 MB, free: 4.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001379/0.001379, allocations: 208 kB / 19.41 MB, free: 3.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.425/1.425, allocations: 227.7 MB / 247.9 MB, free: 10.3 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001902/0.001902, allocations: 64.05 kB / 359.7 MB, free: 12.82 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2422/0.2441, allocations: 50.54 MB / 410.2 MB, free: 1.492 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.0037/0.2478, allocations: 2.215 MB / 412.4 MB, free: 15.27 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001364/0.2492, allocations: 0.74 MB / 413.2 MB, free: 14.53 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001231/0.2493, allocations: 11.94 kB / 413.2 MB, free: 14.52 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001655/0.2495, allocations: 47.52 kB / 413.2 MB, free: 14.47 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001719/0.2497, allocations: 43.59 kB / 413.3 MB, free: 14.43 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002978/0.25, allocations: 107.8 kB / 413.4 MB, free: 14.32 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003074/0.2503, allocations: 231.6 kB / 413.6 MB, free: 14.09 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002025/0.2505, allocations: 95.58 kB / 413.7 MB, free: 14 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002034/0.2507, allocations: 95.58 kB / 413.8 MB, free: 13.9 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001574/0.2508, allocations: 107.5 kB / 413.9 MB, free: 13.8 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.664e-05/0.2509, allocations: 20 kB / 413.9 MB, free: 13.78 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.999e-05/0.251, allocations: 35.98 kB / 413.9 MB, free: 13.74 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.994e-05/0.2511, allocations: 55.83 kB / 414 MB, free: 13.69 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001095/0.2512, allocations: 107.3 kB / 414.1 MB, free: 13.58 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003287/0.2515, allocations: 246.8 kB / 414.3 MB, free: 13.34 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.2515, allocations: 0 / 414.3 MB, free: 13.34 MB / 334.1 MB Notification: Performance of FrontEnd: time 9.61e-07/0.2515, allocations: 0 / 414.3 MB, free: 13.34 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.951e-06/0.2515, allocations: 4 kB / 414.3 MB, free: 13.34 MB / 334.1 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.0009324/0.2524, allocations: 0.5532 MB / 414.9 MB, free: 12.73 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.627e-05/0.2525, allocations: 15.97 kB / 414.9 MB, free: 12.72 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001196/0.2526, allocations: 24.8 kB / 414.9 MB, free: 12.7 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003323/0.2529, allocations: 267.8 kB / 415.2 MB, free: 12.39 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.23e-05/0.2529, allocations: 12.81 kB / 415.2 MB, free: 12.38 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.174e-05/0.253, allocations: 28.38 kB / 415.2 MB, free: 12.36 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005216/0.2535, allocations: 255 kB / 415.5 MB, free: 12.09 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.602e-05/0.2535, allocations: 3.938 kB / 415.5 MB, free: 12.09 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.497e-05/0.2536, allocations: 12 kB / 415.5 MB, free: 12.08 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.176e-05/0.2536, allocations: 12.44 kB / 415.5 MB, free: 12.06 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004694/0.2541, allocations: 189.6 kB / 415.7 MB, free: 11.88 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001244/0.2553, allocations: 0.8226 MB / 416.5 MB, free: 11 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003734/0.2557, allocations: 173.8 kB / 416.7 MB, free: 10.82 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002217/0.2559, allocations: 100.8 kB / 416.8 MB, free: 10.72 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001099/0.256, allocations: 81.11 kB / 416.9 MB, free: 10.62 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.839e-05/0.256, allocations: 38.88 kB / 416.9 MB, free: 10.58 MB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 1.533e-06/0.256, allocations: 0 / 416.9 MB, free: 10.58 MB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.001603/0.2576, allocations: 0.7432 MB / 417.6 MB, free: 9.781 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.826e-05/0.2577, allocations: 55.34 kB / 417.7 MB, free: 9.715 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002328/0.2579, allocations: 213 kB / 417.9 MB, free: 9.496 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.825e-05/0.2579, allocations: 29.7 kB / 417.9 MB, free: 9.461 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001193/0.2581, allocations: 148.6 kB / 418.1 MB, free: 9.312 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.015e-05/0.2581, allocations: 95.2 kB / 418.2 MB, free: 9.219 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.472e-05/0.2582, allocations: 49.69 kB / 418.2 MB, free: 9.164 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001616/0.2584, allocations: 326.8 kB / 418.5 MB, free: 8.836 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002142/0.2586, allocations: 91.94 kB / 418.6 MB, free: 8.746 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002435/0.2588, allocations: 127.4 kB / 418.8 MB, free: 8.609 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004483/0.2593, allocations: 218.4 kB / 419 MB, free: 8.387 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.192e-06/0.2593, allocations: 0 / 419 MB, free: 8.387 MB / 334.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005615/0.2599, allocations: 281.3 kB / 419.2 MB, free: 8.105 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.83e-05/0.2599, allocations: 4 kB / 419.3 MB, free: 8.102 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.731e-06/0.2599, allocations: 4 kB / 419.3 MB, free: 8.098 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.766e-05/0.2599, allocations: 0 / 419.3 MB, free: 8.098 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000295/0.2602, allocations: 63.89 kB / 419.3 MB, free: 8.035 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.188e-06/0.2602, allocations: 4 kB / 419.3 MB, free: 8.031 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000133/0.2603, allocations: 15.98 kB / 419.3 MB, free: 8.016 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.607e-05/0.2603, allocations: 4 kB / 419.3 MB, free: 8.012 MB / 334.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001649/0.2605, allocations: 157.7 kB / 419.5 MB, free: 7.848 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.054e-05/0.2606, allocations: 19.86 kB / 419.5 MB, free: 7.828 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006678/0.2612, allocations: 299.1 kB / 419.8 MB, free: 7.531 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.966e-06/0.2612, allocations: 0 / 419.8 MB, free: 7.531 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.2612, allocations: 0 / 419.8 MB, free: 7.531 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.262e-06/0.2612, allocations: 7.984 kB / 419.8 MB, free: 7.523 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001136/0.2624, allocations: 0.6868 MB / 420.5 MB, free: 6.777 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.2624, allocations: 0 / 420.5 MB, free: 6.777 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002882/0.2627, allocations: 51.91 kB / 420.6 MB, free: 6.727 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.123e-06/0.2627, allocations: 11.97 kB / 420.6 MB, free: 6.715 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.939e-05/0.2627, allocations: 4 kB / 420.6 MB, free: 6.711 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.43e-06/0.2627, allocations: 7.938 kB / 420.6 MB, free: 6.703 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.916e-06/0.2627, allocations: 4.047 kB / 420.6 MB, free: 6.699 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008355/0.2635, allocations: 494 kB / 421.1 MB, free: 6.195 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001199/0.2637, allocations: 121 kB / 421.2 MB, free: 6.059 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.117e-05/0.2637, allocations: 4 kB / 421.2 MB, free: 6.055 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001612/0.2639, allocations: 19.92 kB / 421.2 MB, free: 6.035 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.918e-05/0.2639, allocations: 15.98 kB / 421.2 MB, free: 6.02 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.823e-05/0.2639, allocations: 11.98 kB / 421.2 MB, free: 6.008 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001455/0.2641, allocations: 152.5 kB / 421.4 MB, free: 5.859 MB / 334.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.2641, allocations: 0 / 421.4 MB, free: 5.859 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003214/0.2644, allocations: 48 kB / 421.4 MB, free: 5.812 MB / 334.1 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 (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.0001612/0.2646, allocations: 107.2 kB / 421.5 MB, free: 5.699 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005264/0.2651, allocations: 228 kB / 421.8 MB, free: 5.477 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.195e-06/0.2651, allocations: 0 / 421.8 MB, free: 5.477 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002417/0.2653, allocations: 107.8 kB / 421.9 MB, free: 5.371 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003266/0.2657, allocations: 24.44 kB / 421.9 MB, free: 5.348 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001118/0.2668, allocations: 0.6809 MB / 422.6 MB, free: 4.641 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004025/0.2672, allocations: 0.7678 MB / 423.3 MB, free: 3.84 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001281/0.2673, allocations: 45.91 kB / 423.4 MB, free: 3.797 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.845e-05/0.2674, allocations: 27.42 kB / 423.4 MB, free: 3.77 MB / 334.1 MB Notification: Performance of SimCode: time 3.91e-07/0.2674, allocations: 3.938 kB / 423.4 MB, free: 3.766 MB / 334.1 MB Notification: Performance of Templates: time 0.005805/0.2732, allocations: 2.02 MB / 425.4 MB, free: 1.746 MB / 334.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.SinCosEncoder.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.SinCosEncoder.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.SinCosEncoder.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.SinCosEncoder.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.SinCosEncoder.sim & ./Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.SinCosEncoder -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.SinCosEncoder.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.SinCosEncoder_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/SinCosEncoder/SinCosEncoder.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.SinCosEncoder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches