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.001229/0.001229, allocations: 118.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.001262/0.001262, allocations: 197.2 kB / 18.73 MB, free: 4.336 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.341/1.341, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001234/0.001234, allocations: 59.91 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2531/0.2544, allocations: 50.54 MB / 408.7 MB, free: 1.543 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.003466/0.2579, allocations: 2.224 MB / 411 MB, free: 15.32 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001393/0.2593, allocations: 0.7439 MB / 411.7 MB, free: 14.57 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002114/0.2595, allocations: 7.938 kB / 411.7 MB, free: 14.56 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002183/0.2598, allocations: 43.53 kB / 411.8 MB, free: 14.52 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002414/0.26, allocations: 43.59 kB / 411.8 MB, free: 14.47 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003757/0.2604, allocations: 107.8 kB / 411.9 MB, free: 14.37 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003532/0.2608, allocations: 239.6 kB / 412.1 MB, free: 14.13 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002353/0.261, allocations: 111.6 kB / 412.3 MB, free: 14.02 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002087/0.2613, allocations: 103.5 kB / 412.4 MB, free: 13.91 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001664/0.2614, allocations: 103.5 kB / 412.5 MB, free: 13.81 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.822e-05/0.2615, allocations: 19.94 kB / 412.5 MB, free: 13.79 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.783e-05/0.2616, allocations: 35.98 kB / 412.5 MB, free: 13.76 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.461e-05/0.2617, allocations: 55.84 kB / 412.6 MB, free: 13.7 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001224/0.2618, allocations: 111.3 kB / 412.7 MB, free: 13.59 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003782/0.2622, allocations: 253.9 kB / 412.9 MB, free: 13.35 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.2622, allocations: 4 kB / 412.9 MB, free: 13.34 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.2622, allocations: 0 / 412.9 MB, free: 13.34 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.074e-05/0.2622, allocations: 0 / 412.9 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.0009522/0.2632, allocations: 0.5493 MB / 413.5 MB, free: 12.75 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.256e-05/0.2632, allocations: 8.031 kB / 413.5 MB, free: 12.74 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.61e-05/0.2633, allocations: 62.72 kB / 413.5 MB, free: 12.67 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001305/0.2635, allocations: 36.8 kB / 413.6 MB, free: 12.63 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003254/0.2638, allocations: 251.9 kB / 413.8 MB, free: 12.35 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.491e-05/0.2638, allocations: 12.81 kB / 413.8 MB, free: 12.34 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.559e-05/0.2639, allocations: 24.38 kB / 413.9 MB, free: 12.31 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004982/0.2644, allocations: 266.7 kB / 414.1 MB, free: 12.04 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.478e-05/0.2644, allocations: 0 / 414.1 MB, free: 12.04 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.419e-05/0.2644, allocations: 12 kB / 414.1 MB, free: 12.03 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.057e-05/0.2645, allocations: 12.44 kB / 414.1 MB, free: 12.01 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004553/0.2649, allocations: 189.6 kB / 414.3 MB, free: 11.83 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001198/0.2661, allocations: 0.8264 MB / 415.2 MB, free: 10.95 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003755/0.2665, allocations: 179.5 kB / 415.3 MB, free: 10.76 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002168/0.2668, allocations: 112.8 kB / 415.4 MB, free: 10.65 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.643e-05/0.2669, allocations: 85.47 kB / 415.5 MB, free: 10.55 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.824e-05/0.2669, allocations: 50.44 kB / 415.6 MB, free: 10.49 MB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 1.533e-06/0.2669, allocations: 0 / 415.6 MB, free: 10.49 MB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.001461/0.2684, allocations: 0.7229 MB / 416.3 MB, free: 9.715 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.991e-05/0.2684, allocations: 59.39 kB / 416.4 MB, free: 9.645 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001991/0.2686, allocations: 213 kB / 416.6 MB, free: 9.426 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.34e-05/0.2687, allocations: 29.7 kB / 416.6 MB, free: 9.391 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.704e-05/0.2688, allocations: 148.5 kB / 416.7 MB, free: 9.242 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.628e-05/0.2688, allocations: 83.28 kB / 416.8 MB, free: 9.16 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.772e-05/0.2689, allocations: 49.7 kB / 416.9 MB, free: 9.105 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001246/0.2691, allocations: 334.8 kB / 417.2 MB, free: 8.77 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002146/0.2693, allocations: 91.94 kB / 417.3 MB, free: 8.68 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002125/0.2695, allocations: 119.4 kB / 417.4 MB, free: 8.551 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004285/0.2699, allocations: 218.8 kB / 417.6 MB, free: 8.328 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.362e-06/0.27, allocations: 4 kB / 417.6 MB, free: 8.324 MB / 334.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005425/0.2705, allocations: 281.2 kB / 417.9 MB, free: 8.043 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.446e-05/0.2705, allocations: 4 kB / 417.9 MB, free: 8.039 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.283e-06/0.2705, allocations: 4 kB / 417.9 MB, free: 8.035 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.511e-05/0.2706, allocations: 0 / 417.9 MB, free: 8.035 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000279/0.2708, allocations: 59.89 kB / 418 MB, free: 7.977 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.145e-05/0.2709, allocations: 7.938 kB / 418 MB, free: 7.969 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001376/0.271, allocations: 24.03 kB / 418 MB, free: 7.945 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.534e-05/0.271, allocations: 4 kB / 418 MB, free: 7.941 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.0001386/0.2712, allocations: 149.7 kB / 418.1 MB, free: 7.785 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.985e-05/0.2712, allocations: 19.92 kB / 418.2 MB, free: 7.766 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006036/0.2718, allocations: 311.1 kB / 418.5 MB, free: 7.457 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.007e-06/0.2719, allocations: 0 / 418.5 MB, free: 7.457 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.2719, allocations: 4 kB / 418.5 MB, free: 7.453 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.542e-06/0.2719, allocations: 4 kB / 418.5 MB, free: 7.449 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001061/0.2729, allocations: 0.6791 MB / 419.2 MB, free: 6.711 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.435e-06/0.273, allocations: 0 / 419.2 MB, free: 6.711 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000288/0.2733, allocations: 55.91 kB / 419.2 MB, free: 6.656 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.58e-06/0.2733, allocations: 4 kB / 419.2 MB, free: 6.652 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.761e-05/0.2733, allocations: 8.031 kB / 419.2 MB, free: 6.645 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.502e-06/0.2733, allocations: 11.92 kB / 419.2 MB, free: 6.633 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.2733, allocations: 0 / 419.2 MB, free: 6.633 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007933/0.2741, allocations: 481.9 kB / 419.7 MB, free: 6.141 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001014/0.2742, allocations: 121 kB / 419.8 MB, free: 6.004 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.557e-05/0.2743, allocations: 7.984 kB / 419.8 MB, free: 5.996 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001569/0.2744, allocations: 15.94 kB / 419.8 MB, free: 5.98 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.441e-05/0.2745, allocations: 23.91 kB / 419.9 MB, free: 5.957 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.236e-05/0.2745, allocations: 4 kB / 419.9 MB, free: 5.953 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001322/0.2747, allocations: 156.5 kB / 420 MB, free: 5.801 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2747, allocations: 0 / 420 MB, free: 5.801 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003135/0.275, allocations: 48 kB / 420.1 MB, free: 5.754 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.001146/0.2761, allocations: 1.023 MB / 421.1 MB, free: 4.703 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000512/0.2767, allocations: 227.8 kB / 421.3 MB, free: 4.48 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.2767, allocations: 0 / 421.3 MB, free: 4.48 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002369/0.2769, allocations: 115.9 kB / 421.4 MB, free: 4.367 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003544/0.2773, allocations: 28.42 kB / 421.5 MB, free: 4.34 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003576/0.2809, allocations: 2.699 MB / 424.2 MB, free: 1.531 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003155/0.2812, allocations: 0.7678 MB / 424.9 MB, free: 0.7344 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001354/0.2813, allocations: 45.92 kB / 425 MB, free: 0.6914 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001375/0.2815, allocations: 83.39 kB / 425.1 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of SimCode: time 2.51e-07/0.2815, allocations: 0 / 425.1 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0236/0.3051, allocations: 4.502 MB / 429.6 MB, free: 12.18 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.99/8.295, allocations: 7.922 kB / 429.6 MB, free: 12.17 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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-05 --interface-type ModelExchange --solver CVode --output-interval 5e-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.csv","/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