Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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 trunk/package.mo", uses=false) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.SinCosEncoder,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_SinCosEncoder",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.SinCosEncoder,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_SinCosEncoder",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001247/0.001246, allocations: 122.8 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001463/0.001463, allocations: 202 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.446/1.446, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001278/0.001278, allocations: 63.88 kB / 358.2 MB, free: 13.44 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3436/0.3449, allocations: 50.55 MB / 408.8 MB, free: 1.547 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.00397/0.3489, allocations: 2.208 MB / 411 MB, free: 15.33 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001352/0.3503, allocations: 0.7478 MB / 411.7 MB, free: 14.58 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001339/0.3504, allocations: 7.938 kB / 411.7 MB, free: 14.57 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000204/0.3506, allocations: 47.52 kB / 411.8 MB, free: 14.52 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002054/0.3509, allocations: 43.59 kB / 411.8 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000293/0.3512, allocations: 103.8 kB / 411.9 MB, free: 14.38 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002905/0.3515, allocations: 235.7 kB / 412.1 MB, free: 14.14 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002642/0.3517, allocations: 111.6 kB / 412.2 MB, free: 14.03 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000229/0.352, allocations: 107.6 kB / 412.4 MB, free: 13.93 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001821/0.3522, allocations: 111.4 kB / 412.5 MB, free: 13.82 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.443e-05/0.3522, allocations: 16 kB / 412.5 MB, free: 13.8 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001016/0.3523, allocations: 32 kB / 412.5 MB, free: 13.77 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.157e-05/0.3524, allocations: 59.81 kB / 412.6 MB, free: 13.71 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001191/0.3526, allocations: 107.3 kB / 412.7 MB, free: 13.61 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003779/0.3529, allocations: 248.7 kB / 412.9 MB, free: 13.36 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.241e-06/0.353, allocations: 4 kB / 412.9 MB, free: 13.36 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.485e-06/0.353, allocations: 0 / 412.9 MB, free: 13.36 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.925e-06/0.353, allocations: 0 / 412.9 MB, free: 13.36 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.001097/0.3541, allocations: 0.5418 MB / 413.5 MB, free: 12.77 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.416e-05/0.3541, allocations: 12.03 kB / 413.5 MB, free: 12.76 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.851e-05/0.3542, allocations: 54.73 kB / 413.5 MB, free: 12.7 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001522/0.3544, allocations: 40.48 kB / 413.6 MB, free: 12.66 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003351/0.3547, allocations: 251.8 kB / 413.8 MB, free: 12.37 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.268e-05/0.3548, allocations: 16.75 kB / 413.8 MB, free: 12.36 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.16e-05/0.3548, allocations: 24.36 kB / 413.8 MB, free: 12.33 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004904/0.3553, allocations: 258.8 kB / 414.1 MB, free: 12.07 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.672e-05/0.3554, allocations: 0 / 414.1 MB, free: 12.07 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.69e-05/0.3554, allocations: 12 kB / 414.1 MB, free: 12.05 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.366e-05/0.3554, allocations: 16.38 kB / 414.1 MB, free: 12.04 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004533/0.3559, allocations: 193.6 kB / 414.3 MB, free: 11.85 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001305/0.3572, allocations: 0.8184 MB / 415.1 MB, free: 10.97 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003725/0.3576, allocations: 183.6 kB / 415.3 MB, free: 10.79 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002122/0.3578, allocations: 108.8 kB / 415.4 MB, free: 10.68 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001742/0.358, allocations: 81.48 kB / 415.5 MB, free: 10.58 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.273e-05/0.358, allocations: 42.5 kB / 415.5 MB, free: 10.53 MB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 1.553e-06/0.358, allocations: 0 / 415.5 MB, free: 10.53 MB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.00155/0.3596, allocations: 0.7226 MB / 416.3 MB, free: 9.754 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.817e-05/0.3597, allocations: 59.34 kB / 416.3 MB, free: 9.684 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002086/0.3599, allocations: 216.9 kB / 416.5 MB, free: 9.461 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.908e-05/0.3599, allocations: 33.7 kB / 416.6 MB, free: 9.422 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001026/0.36, allocations: 152.3 kB / 416.7 MB, free: 9.27 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.079e-05/0.3601, allocations: 78.81 kB / 416.8 MB, free: 9.191 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.993e-05/0.3602, allocations: 53.69 kB / 416.8 MB, free: 9.133 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001618/0.3604, allocations: 334.8 kB / 417.2 MB, free: 8.797 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001969/0.3606, allocations: 79.95 kB / 417.3 MB, free: 8.719 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002118/0.3608, allocations: 127.4 kB / 417.4 MB, free: 8.582 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004074/0.3612, allocations: 215.2 kB / 417.6 MB, free: 8.359 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.3612, allocations: 4 kB / 417.6 MB, free: 8.355 MB / 334.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005322/0.3618, allocations: 284.5 kB / 417.9 MB, free: 8.074 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.973e-05/0.3618, allocations: 4 kB / 417.9 MB, free: 8.07 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.112e-05/0.3618, allocations: 0 / 417.9 MB, free: 8.07 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.568e-05/0.3618, allocations: 7.938 kB / 417.9 MB, free: 8.062 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002917/0.3621, allocations: 63.89 kB / 417.9 MB, free: 8 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.845e-06/0.3622, allocations: 0 / 417.9 MB, free: 8 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001248/0.3623, allocations: 20.05 kB / 418 MB, free: 7.98 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.102e-05/0.3623, allocations: 8 kB / 418 MB, free: 7.973 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.0001764/0.3625, allocations: 149.6 kB / 418.1 MB, free: 7.816 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.128e-05/0.3626, allocations: 23.72 kB / 418.1 MB, free: 7.793 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006443/0.3632, allocations: 299.1 kB / 418.4 MB, free: 7.496 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.899e-06/0.3632, allocations: 4 kB / 418.4 MB, free: 7.492 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.282e-06/0.3632, allocations: 0 / 418.4 MB, free: 7.492 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.847e-06/0.3632, allocations: 7.984 kB / 418.4 MB, free: 7.484 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00109/0.3643, allocations: 0.6752 MB / 419.1 MB, free: 6.75 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.445e-06/0.3644, allocations: 0 / 419.1 MB, free: 6.75 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000266/0.3646, allocations: 63.89 kB / 419.2 MB, free: 6.688 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.036e-06/0.3646, allocations: 3.938 kB / 419.2 MB, free: 6.684 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.957e-05/0.3647, allocations: 8.031 kB / 419.2 MB, free: 6.676 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.858e-06/0.3647, allocations: 3.938 kB / 419.2 MB, free: 6.672 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/0.3647, allocations: 4 kB / 419.2 MB, free: 6.668 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000778/0.3655, allocations: 477.8 kB / 419.7 MB, free: 6.18 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001074/0.3656, allocations: 116.9 kB / 419.8 MB, free: 6.047 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.426e-05/0.3656, allocations: 12 kB / 419.8 MB, free: 6.035 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001464/0.3658, allocations: 15.92 kB / 419.8 MB, free: 6.02 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.469e-05/0.3659, allocations: 23.91 kB / 419.8 MB, free: 5.996 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.543e-05/0.3659, allocations: 8 kB / 419.8 MB, free: 5.988 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001361/0.366, allocations: 152.5 kB / 420 MB, free: 5.84 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.366, allocations: 0 / 420 MB, free: 5.84 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002948/0.3663, allocations: 44 kB / 420 MB, free: 5.797 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.001149/0.3675, allocations: 1.042 MB / 421.1 MB, free: 4.727 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005527/0.3681, allocations: 223.9 kB / 421.3 MB, free: 4.508 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.3681, allocations: 0 / 421.3 MB, free: 4.508 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002404/0.3683, allocations: 115.8 kB / 421.4 MB, free: 4.395 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003677/0.3687, allocations: 28.86 kB / 421.4 MB, free: 4.367 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003705/0.3724, allocations: 2.676 MB / 424.1 MB, free: 1.582 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003946/0.3728, allocations: 0.7678 MB / 424.9 MB, free: 0.7852 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001409/0.373, allocations: 49.89 kB / 424.9 MB, free: 0.7383 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001542/0.3731, allocations: 83.41 kB / 425 MB, free: 0.6562 MB / 334.1 MB Notification: Performance of SimCode: time 1.623e-06/0.3731, allocations: 0 / 425 MB, free: 0.6562 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02722/0.4004, allocations: 4.585 MB / 429.6 MB, free: 12.13 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.121/8.522, allocations: 7.484 kB / 429.6 MB, free: 12.13 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder_res.mat --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_SinCosEncoder_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 Modelica_trunk_Modelica_Blocks_Examples_SinCosEncoder.fmu > Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Blocks.Examples.SinCosEncoder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches