Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.SinCosEncoder,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_SinCosEncoder",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.SinCosEncoder,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_SinCosEncoder",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001646/0.001646, allocations: 106.4 kB / 17.06 MB, free: 6.027 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002155/0.002155, allocations: 195 kB / 18 MB, free: 5.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.042/2.042, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002145/0.002145, allocations: 47.92 kB / 350.8 MB, free: 3.766 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5572/0.5594, allocations: 49.44 MB / 400.2 MB, free: 8.426 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.006181/0.5656, allocations: 2.201 MB / 402.4 MB, free: 6.617 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001826/0.5675, allocations: 0.7049 MB / 403.1 MB, free: 5.91 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003121/0.5679, allocations: 4 kB / 403.1 MB, free: 5.906 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002422/0.5681, allocations: 51.45 kB / 403.2 MB, free: 5.855 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003129/0.5685, allocations: 35.66 kB / 403.2 MB, free: 5.82 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004236/0.5689, allocations: 99.77 kB / 403.3 MB, free: 5.723 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004519/0.5694, allocations: 235.7 kB / 403.6 MB, free: 5.492 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00034/0.5697, allocations: 115.5 kB / 403.7 MB, free: 5.375 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003084/0.5701, allocations: 91.62 kB / 403.8 MB, free: 5.285 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002274/0.5703, allocations: 115.5 kB / 403.9 MB, free: 5.172 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.516e-05/0.5704, allocations: 16 kB / 403.9 MB, free: 5.156 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001271/0.5705, allocations: 28 kB / 403.9 MB, free: 5.129 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001152/0.5706, allocations: 55.77 kB / 404 MB, free: 5.074 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001423/0.5708, allocations: 111.3 kB / 404.1 MB, free: 4.965 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004871/0.5713, allocations: 244.7 kB / 404.3 MB, free: 4.727 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.253e-06/0.5713, allocations: 3.938 kB / 404.3 MB, free: 4.723 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.926e-06/0.5713, allocations: 0 / 404.3 MB, free: 4.723 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.253e-05/0.5713, allocations: 0 / 404.3 MB, free: 4.723 MB / 318.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.001194/0.5725, allocations: 0.5496 MB / 404.9 MB, free: 4.125 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.925e-05/0.5726, allocations: 8.031 kB / 404.9 MB, free: 4.117 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.783e-05/0.5727, allocations: 54.73 kB / 404.9 MB, free: 4.055 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.687e-05/0.5727, allocations: 28.56 kB / 405 MB, free: 4.027 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003622/0.5731, allocations: 253.1 kB / 405.2 MB, free: 3.742 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.8e-05/0.5732, allocations: 20.56 kB / 405.2 MB, free: 3.719 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.74e-05/0.5732, allocations: 24 kB / 405.3 MB, free: 3.695 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005092/0.5737, allocations: 254.6 kB / 405.5 MB, free: 3.43 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.647e-05/0.5738, allocations: 0 / 405.5 MB, free: 3.43 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.569e-05/0.5738, allocations: 8 kB / 405.5 MB, free: 3.422 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.763e-05/0.5738, allocations: 12.42 kB / 405.5 MB, free: 3.41 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004658/0.5743, allocations: 201.5 kB / 405.7 MB, free: 3.215 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001415/0.5757, allocations: 0.8146 MB / 406.5 MB, free: 2.34 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004123/0.5762, allocations: 190.4 kB / 406.7 MB, free: 2.145 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000222/0.5764, allocations: 113.1 kB / 406.8 MB, free: 2.031 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001298/0.5765, allocations: 89.09 kB / 406.9 MB, free: 1.926 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.149e-05/0.5766, allocations: 30.56 kB / 406.9 MB, free: 1.887 MB / 318.1 MB Notification: Performance of pre-optimization done (n=22): time 1.963e-06/0.5766, allocations: 0 / 406.9 MB, free: 1.887 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.00161/0.5782, allocations: 0.7146 MB / 407.7 MB, free: 1.117 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.264e-05/0.5783, allocations: 55.41 kB / 407.7 MB, free: 1.051 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002346/0.5785, allocations: 217 kB / 407.9 MB, free: 0.832 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.64e-05/0.5786, allocations: 29.7 kB / 408 MB, free: 0.7969 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001183/0.5787, allocations: 164.2 kB / 408.1 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.076e-05/0.5788, allocations: 78.81 kB / 408.2 MB, free: 0.5547 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001029/0.5789, allocations: 49.7 kB / 408.2 MB, free: 0.5 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001409/0.579, allocations: 338.8 kB / 408.6 MB, free: 164 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002121/0.5792, allocations: 83.94 kB / 408.7 MB, free: 80 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002464/0.5795, allocations: 119.6 kB / 408.8 MB, free: 15.95 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004264/0.5799, allocations: 222.5 kB / 409 MB, free: 15.72 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.5799, allocations: 0 / 409 MB, free: 15.72 MB / 334.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005559/0.5805, allocations: 277.1 kB / 409.3 MB, free: 15.45 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.347e-05/0.5805, allocations: 8.062 kB / 409.3 MB, free: 15.44 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.965e-06/0.5806, allocations: 0 / 409.3 MB, free: 15.44 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.156e-05/0.5806, allocations: 4 kB / 409.3 MB, free: 15.43 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003039/0.5809, allocations: 59.95 kB / 409.3 MB, free: 15.38 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.087e-05/0.5809, allocations: 4 kB / 409.3 MB, free: 15.37 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001406/0.5811, allocations: 23.91 kB / 409.4 MB, free: 15.35 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.598e-05/0.5811, allocations: 12 kB / 409.4 MB, free: 15.34 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.000155/0.5813, allocations: 133.8 kB / 409.5 MB, free: 15.2 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.636e-05/0.5813, allocations: 31.7 kB / 409.5 MB, free: 15.16 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006482/0.582, allocations: 295.8 kB / 409.8 MB, free: 14.87 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.472e-06/0.582, allocations: 4 kB / 409.8 MB, free: 14.87 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.935e-06/0.582, allocations: 0 / 409.8 MB, free: 14.87 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.675e-06/0.582, allocations: 7.875 kB / 409.8 MB, free: 14.86 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001202/0.5832, allocations: 0.683 MB / 410.5 MB, free: 14.11 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.668e-06/0.5833, allocations: 0 / 410.5 MB, free: 14.11 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002982/0.5836, allocations: 55.91 kB / 410.6 MB, free: 14.06 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.408e-06/0.5836, allocations: 7.938 kB / 410.6 MB, free: 14.05 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.476e-05/0.5836, allocations: 4 kB / 410.6 MB, free: 14.05 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.452e-06/0.5836, allocations: 7.984 kB / 410.6 MB, free: 14.04 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.325e-06/0.5836, allocations: 0 / 410.6 MB, free: 14.04 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008435/0.5845, allocations: 485.3 kB / 411.1 MB, free: 13.54 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001326/0.5846, allocations: 112.8 kB / 411.2 MB, free: 13.41 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.43e-05/0.5847, allocations: 11.98 kB / 411.2 MB, free: 13.4 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001546/0.5848, allocations: 8 kB / 411.2 MB, free: 13.39 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.28e-05/0.5849, allocations: 19.97 kB / 411.2 MB, free: 13.38 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.383e-05/0.5849, allocations: 12 kB / 411.2 MB, free: 13.36 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001729/0.5851, allocations: 160.5 kB / 411.4 MB, free: 13.21 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5851, allocations: 0 / 411.4 MB, free: 13.21 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003516/0.5855, allocations: 48 kB / 411.4 MB, free: 13.16 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.00143/0.5869, allocations: 1.031 MB / 412.5 MB, free: 12.11 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005552/0.5875, allocations: 215.8 kB / 412.7 MB, free: 11.89 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.947e-06/0.5875, allocations: 3.938 kB / 412.7 MB, free: 11.89 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002508/0.5878, allocations: 123.9 kB / 412.8 MB, free: 11.77 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004153/0.5882, allocations: 28.14 kB / 412.8 MB, free: 11.74 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004498/0.5927, allocations: 2.696 MB / 415.5 MB, free: 8.938 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004707/0.5932, allocations: 0.7714 MB / 416.3 MB, free: 8.137 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001695/0.5934, allocations: 49.84 kB / 416.3 MB, free: 8.09 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000163/0.5936, allocations: 91.39 kB / 416.4 MB, free: 8.004 MB / 334.1 MB Notification: Performance of SimCode: time 1.924e-06/0.5936, allocations: 0 / 416.4 MB, free: 8.004 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03547/0.6291, allocations: 4.64 MB / 421.1 MB, free: 3.43 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.06/12.69, allocations: 14.86 kB / 421.1 MB, free: 3.422 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_SinCosEncoder_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 Modelica_4_0_0_Modelica_Blocks_Examples_SinCosEncoder.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/SinCosEncoder/SinCosEncoder.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches