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: "" <> buildModelFMU(Modelica.Blocks.Examples.SinCosEncoder,fileNamePrefix="Modelica_trunk_cpp_Modelica_Blocks_Examples_SinCosEncoder",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.SinCosEncoder,fileNamePrefix="Modelica_trunk_cpp_Modelica_Blocks_Examples_SinCosEncoder",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001105/0.001105, allocations: 196.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.268/1.268, allocations: 226.5 MB / 244.7 MB, free: 8.188 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008478/0.0008478, allocations: 96.58 kB / 296.7 MB, free: 6.898 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002179/0.0002181, allocations: 4 kB / 356.8 MB, free: 10.82 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2107/0.2109, allocations: 51.29 MB / 408.1 MB, free: 27.72 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.00181/0.2128, allocations: 1.847 MB / 410 MB, free: 25.86 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009434/0.2138, allocations: 0.6814 MB / 410.6 MB, free: 25.18 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001138/0.2139, allocations: 7.938 kB / 410.7 MB, free: 25.17 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001477/0.214, allocations: 35.66 kB / 410.7 MB, free: 25.14 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001593/0.2142, allocations: 40.98 kB / 410.7 MB, free: 25.1 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002297/0.2145, allocations: 72.8 kB / 410.8 MB, free: 25.03 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002007/0.2147, allocations: 220.6 kB / 411 MB, free: 24.81 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001965/0.2149, allocations: 101.5 kB / 411.1 MB, free: 24.72 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001639/0.215, allocations: 79.62 kB / 411.2 MB, free: 24.64 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001068/0.2152, allocations: 79.55 kB / 411.3 MB, free: 24.56 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.423e-05/0.2152, allocations: 4 kB / 411.3 MB, free: 24.56 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.475e-05/0.2153, allocations: 31.92 kB / 411.3 MB, free: 24.53 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.553e-05/0.2153, allocations: 31.86 kB / 411.3 MB, free: 24.5 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.244e-05/0.2154, allocations: 113.1 kB / 411.4 MB, free: 24.38 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001563/0.2156, allocations: 160.9 kB / 411.6 MB, free: 24.22 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.47e-06/0.2156, allocations: 0 / 411.6 MB, free: 24.22 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.826e-06/0.2156, allocations: 3.984 kB / 411.6 MB, free: 24.22 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.849e-06/0.2156, allocations: 0 / 411.6 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.0006606/0.2163, allocations: 0.5068 MB / 412.1 MB, free: 23.66 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.179e-05/0.2163, allocations: 12.03 kB / 412.1 MB, free: 23.65 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.002e-05/0.2164, allocations: 62.72 kB / 412.2 MB, free: 23.58 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001069/0.2165, allocations: 28.66 kB / 412.2 MB, free: 23.55 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002177/0.2167, allocations: 251.6 kB / 412.5 MB, free: 23.27 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.065e-05/0.2167, allocations: 12.81 kB / 412.5 MB, free: 23.26 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.464e-05/0.2168, allocations: 24.28 kB / 412.5 MB, free: 23.23 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003893/0.2172, allocations: 266.7 kB / 412.8 MB, free: 22.96 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.55e-05/0.2172, allocations: 0 / 412.8 MB, free: 22.96 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.126e-05/0.2172, allocations: 15.94 kB / 412.8 MB, free: 22.94 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.794e-05/0.2173, allocations: 12.42 kB / 412.8 MB, free: 22.93 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003708/0.2176, allocations: 205.6 kB / 413 MB, free: 22.73 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000911/0.2186, allocations: 0.8263 MB / 413.8 MB, free: 21.84 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002943/0.2189, allocations: 190.4 kB / 414 MB, free: 21.65 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001816/0.2191, allocations: 112.2 kB / 414.1 MB, free: 21.54 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.867e-05/0.2191, allocations: 85.47 kB / 414.2 MB, free: 21.44 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.517e-05/0.2192, allocations: 46.5 kB / 414.2 MB, free: 21.38 MB / 298.7 MB Notification: Performance of pre-optimization done (n=22): time 1.332e-06/0.2192, allocations: 0 / 414.2 MB, free: 21.38 MB / 298.7 MB Notification: Performance of matching and sorting (n=23): time 0.001211/0.2204, allocations: 0.7404 MB / 415 MB, free: 20.59 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.205e-05/0.2204, allocations: 51.41 kB / 415 MB, free: 20.52 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001354/0.2206, allocations: 213 kB / 415.2 MB, free: 20.3 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.393e-05/0.2206, allocations: 33.7 kB / 415.3 MB, free: 20.26 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.64e-05/0.2207, allocations: 148.4 kB / 415.4 MB, free: 20.11 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.063e-05/0.2207, allocations: 86.73 kB / 415.5 MB, free: 20.03 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.189e-05/0.2207, allocations: 7.938 kB / 415.5 MB, free: 20.02 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.319e-05/0.2208, allocations: 334.8 kB / 415.8 MB, free: 19.68 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001695/0.2209, allocations: 83.95 kB / 415.9 MB, free: 19.6 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001771/0.2211, allocations: 135.3 kB / 416 MB, free: 19.46 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003504/0.2215, allocations: 233.8 kB / 416.3 MB, free: 19.22 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-06/0.2215, allocations: 0 / 416.3 MB, free: 19.22 MB / 298.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0004321/0.2219, allocations: 281.2 kB / 416.6 MB, free: 18.94 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.704e-05/0.222, allocations: 12 kB / 416.6 MB, free: 18.93 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.751e-06/0.222, allocations: 0 / 416.6 MB, free: 18.93 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.579e-05/0.222, allocations: 4 kB / 416.6 MB, free: 18.92 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002563/0.2223, allocations: 63.89 kB / 416.6 MB, free: 18.86 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.745e-06/0.2223, allocations: 4 kB / 416.6 MB, free: 18.86 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001247/0.2224, allocations: 15.98 kB / 416.7 MB, free: 18.84 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.762e-05/0.2224, allocations: 8 kB / 416.7 MB, free: 18.83 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.0001022/0.2225, allocations: 149.7 kB / 416.8 MB, free: 18.68 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.839e-05/0.2226, allocations: 19.81 kB / 416.8 MB, free: 18.66 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005107/0.2231, allocations: 307 kB / 417.1 MB, free: 18.36 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.988e-06/0.2231, allocations: 7.938 kB / 417.1 MB, free: 18.35 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.2231, allocations: 0 / 417.1 MB, free: 18.35 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.56e-06/0.2231, allocations: 3.984 kB / 417.1 MB, free: 18.34 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008403/0.224, allocations: 0.6904 MB / 417.8 MB, free: 17.59 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.224, allocations: 3.938 kB / 417.8 MB, free: 17.59 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002519/0.2243, allocations: 55.95 kB / 417.9 MB, free: 17.54 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.647e-06/0.2243, allocations: 0 / 417.9 MB, free: 17.54 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.789e-05/0.2243, allocations: 8 kB / 417.9 MB, free: 17.53 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.577e-06/0.2243, allocations: 3.938 kB / 417.9 MB, free: 17.52 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.2243, allocations: 4 kB / 417.9 MB, free: 17.52 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006384/0.225, allocations: 0.4926 MB / 418.4 MB, free: 17 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.899e-05/0.225, allocations: 116.9 kB / 418.5 MB, free: 16.87 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.094e-05/0.2251, allocations: 8 kB / 418.5 MB, free: 16.86 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001452/0.2252, allocations: 19.92 kB / 418.5 MB, free: 16.84 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.059e-05/0.2253, allocations: 15.97 kB / 418.5 MB, free: 16.83 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.412e-05/0.2253, allocations: 8.188 kB / 418.6 MB, free: 16.82 MB / 298.7 MB Notification: Performance of sorting global known variables: time 9.039e-05/0.2254, allocations: 152.5 kB / 418.7 MB, free: 16.67 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2254, allocations: 0 / 418.7 MB, free: 16.67 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002723/0.2257, allocations: 56 kB / 418.8 MB, free: 16.62 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.0008648/0.2266, allocations: 1.039 MB / 419.8 MB, free: 15.55 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004281/0.227, allocations: 238.1 kB / 420 MB, free: 15.32 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.227, allocations: 0 / 420 MB, free: 15.32 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001946/0.2272, allocations: 131.7 kB / 420.2 MB, free: 15.19 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003375/0.2276, allocations: 24.42 kB / 420.2 MB, free: 15.17 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001992/0.2296, allocations: 1.767 MB / 422 MB, free: 13.33 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001557/0.2297, allocations: 0.7642 MB / 422.7 MB, free: 12.54 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001168/0.2299, allocations: 83.41 kB / 422.8 MB, free: 12.46 MB / 298.7 MB Notification: Performance of SimCode: time 4.11e-07/0.2299, allocations: 0 / 422.8 MB, free: 12.46 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.652/2.882, allocations: 3.436 MB / 426.2 MB, free: 9.02 MB / 298.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Blocks.Examples.SinCosEncoder_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Blocks_Examples_SinCosEncoder_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 Modelica_trunk_cpp_Modelica_Blocks_Examples_SinCosEncoder.fmu > Modelica_trunk_cpp_Modelica.Blocks.Examples.SinCosEncoder.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Blocks.Examples.SinCosEncoder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches