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.001718/0.001718, allocations: 121.1 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002089/0.002088, allocations: 204.6 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.55/1.55, allocations: 227.4 MB / 247 MB, free: 10.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001853/0.001853, allocations: 63.89 kB / 358.3 MB, free: 13.36 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3313/0.3331, allocations: 50.56 MB / 408.8 MB, free: 1.469 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.003862/0.337, allocations: 2.209 MB / 411 MB, free: 15.25 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001704/0.3388, allocations: 0.7477 MB / 411.8 MB, free: 14.5 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002644/0.3391, allocations: 4 kB / 411.8 MB, free: 14.49 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002396/0.3394, allocations: 47.47 kB / 411.8 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002388/0.3397, allocations: 39.66 kB / 411.9 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000402/0.3401, allocations: 107.7 kB / 412 MB, free: 14.3 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003371/0.3404, allocations: 243.6 kB / 412.2 MB, free: 14.06 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000255/0.3407, allocations: 119.6 kB / 412.3 MB, free: 13.94 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002249/0.3409, allocations: 95.58 kB / 412.4 MB, free: 13.84 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001796/0.3411, allocations: 103.5 kB / 412.5 MB, free: 13.74 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.695e-05/0.3412, allocations: 19.94 kB / 412.5 MB, free: 13.72 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001044/0.3413, allocations: 39.98 kB / 412.6 MB, free: 13.68 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.985e-05/0.3414, allocations: 55.77 kB / 412.6 MB, free: 13.63 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001238/0.3415, allocations: 107.3 kB / 412.7 MB, free: 13.52 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004149/0.3419, allocations: 249.9 kB / 413 MB, free: 13.28 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.3419, allocations: 0 / 413 MB, free: 13.28 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.3419, allocations: 0 / 413 MB, free: 13.28 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.773e-06/0.342, allocations: 4 kB / 413 MB, free: 13.28 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.00105/0.343, allocations: 0.5532 MB / 413.5 MB, free: 12.68 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.943e-05/0.3431, allocations: 12.03 kB / 413.6 MB, free: 12.66 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.555e-05/0.3431, allocations: 50.73 kB / 413.6 MB, free: 12.61 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001381/0.3433, allocations: 32.78 kB / 413.6 MB, free: 12.57 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003339/0.3436, allocations: 263.8 kB / 413.9 MB, free: 12.28 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.967e-05/0.3437, allocations: 20.81 kB / 413.9 MB, free: 12.26 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.354e-05/0.3437, allocations: 20.38 kB / 413.9 MB, free: 12.24 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005014/0.3442, allocations: 258.8 kB / 414.2 MB, free: 11.97 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.635e-05/0.3443, allocations: 0 / 414.2 MB, free: 11.97 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.216e-05/0.3443, allocations: 8 kB / 414.2 MB, free: 11.96 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.485e-05/0.3443, allocations: 16.42 kB / 414.2 MB, free: 11.95 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004513/0.3448, allocations: 193.6 kB / 414.4 MB, free: 11.76 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001218/0.346, allocations: 0.8226 MB / 415.2 MB, free: 10.88 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003933/0.3464, allocations: 186.4 kB / 415.4 MB, free: 10.69 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002289/0.3467, allocations: 108.2 kB / 415.5 MB, free: 10.58 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001154/0.3468, allocations: 85.48 kB / 415.6 MB, free: 10.48 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.518e-05/0.3468, allocations: 38.48 kB / 415.6 MB, free: 10.43 MB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 7.123e-06/0.3468, allocations: 7.984 kB / 415.6 MB, free: 10.43 MB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.001694/0.3485, allocations: 0.7196 MB / 416.4 MB, free: 9.652 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.513e-05/0.3486, allocations: 55.41 kB / 416.4 MB, free: 9.586 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002465/0.3489, allocations: 217 kB / 416.6 MB, free: 9.363 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.796e-05/0.3489, allocations: 33.7 kB / 416.7 MB, free: 9.324 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001337/0.3491, allocations: 152.5 kB / 416.8 MB, free: 9.172 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.789e-05/0.3491, allocations: 87.27 kB / 416.9 MB, free: 9.086 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.739e-05/0.3492, allocations: 53.64 kB / 416.9 MB, free: 9.027 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001927/0.3494, allocations: 330.8 kB / 417.3 MB, free: 8.695 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002106/0.3497, allocations: 83.95 kB / 417.4 MB, free: 8.613 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002828/0.3499, allocations: 127.4 kB / 417.5 MB, free: 8.477 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004637/0.3504, allocations: 212.4 kB / 417.7 MB, free: 8.258 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.133e-06/0.3504, allocations: 0 / 417.7 MB, free: 8.258 MB / 334.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005739/0.351, allocations: 292.6 kB / 418 MB, free: 7.969 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.162e-05/0.351, allocations: 4 kB / 418 MB, free: 7.965 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.296e-06/0.3511, allocations: 0 / 418 MB, free: 7.965 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.145e-05/0.3511, allocations: 4 kB / 418 MB, free: 7.961 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002997/0.3514, allocations: 67.83 kB / 418 MB, free: 7.895 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.995e-06/0.3514, allocations: 0 / 418 MB, free: 7.895 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001272/0.3515, allocations: 15.98 kB / 418.1 MB, free: 7.879 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.526e-05/0.3516, allocations: 11.98 kB / 418.1 MB, free: 7.867 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.0001678/0.3517, allocations: 145.8 kB / 418.2 MB, free: 7.715 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.364e-05/0.3518, allocations: 23.86 kB / 418.2 MB, free: 7.691 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006761/0.3525, allocations: 299.1 kB / 418.5 MB, free: 7.395 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.125e-06/0.3525, allocations: 4 kB / 418.5 MB, free: 7.391 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.621e-06/0.3525, allocations: 3.938 kB / 418.5 MB, free: 7.387 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.442e-06/0.3525, allocations: 64 / 418.5 MB, free: 7.387 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001295/0.3538, allocations: 0.6869 MB / 419.2 MB, free: 6.641 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.519e-06/0.3538, allocations: 3.984 kB / 419.2 MB, free: 6.637 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002788/0.3541, allocations: 51.97 kB / 419.3 MB, free: 6.586 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.269e-06/0.3542, allocations: 3.938 kB / 419.3 MB, free: 6.582 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.407e-05/0.3542, allocations: 8 kB / 419.3 MB, free: 6.574 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.354e-06/0.3542, allocations: 7.922 kB / 419.3 MB, free: 6.566 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.617e-06/0.3542, allocations: 4.031 kB / 419.3 MB, free: 6.562 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008818/0.3551, allocations: 482 kB / 419.8 MB, free: 6.07 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001407/0.3553, allocations: 121 kB / 419.9 MB, free: 5.934 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.819e-05/0.3553, allocations: 8 kB / 419.9 MB, free: 5.926 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000148/0.3555, allocations: 15.92 kB / 419.9 MB, free: 5.91 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.912e-05/0.3555, allocations: 19.97 kB / 419.9 MB, free: 5.891 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.917e-05/0.3556, allocations: 12 kB / 419.9 MB, free: 5.879 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001768/0.3557, allocations: 152.5 kB / 420.1 MB, free: 5.73 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3557, allocations: 0 / 420.1 MB, free: 5.73 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003404/0.3561, allocations: 47.98 kB / 420.1 MB, free: 5.684 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.001353/0.3574, allocations: 1.031 MB / 421.2 MB, free: 4.625 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005657/0.358, allocations: 215.8 kB / 421.4 MB, free: 4.414 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.806e-06/0.358, allocations: 128 / 421.4 MB, free: 4.414 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002822/0.3583, allocations: 123.8 kB / 421.5 MB, free: 4.293 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003753/0.3587, allocations: 24.42 kB / 421.5 MB, free: 4.27 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004252/0.363, allocations: 2.703 MB / 424.2 MB, free: 1.457 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005431/0.3636, allocations: 0.76 MB / 425 MB, free: 0.668 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001727/0.3638, allocations: 49.89 kB / 425 MB, free: 0.6211 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001697/0.3639, allocations: 87.41 kB / 425.1 MB, free: 0.5352 MB / 334.1 MB Notification: Performance of SimCode: time 1.252e-06/0.3639, allocations: 0 / 425.1 MB, free: 0.5352 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03192/0.3959, allocations: 4.495 MB / 429.6 MB, free: 12.1 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.71/9.106, allocations: 15.92 kB / 429.6 MB, free: 12.09 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.1.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