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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001277/0.001277, allocations: 105.1 kB / 21.22 MB, free: 0.6289 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001476/0.001476, allocations: 212.7 kB / 24.52 MB, free: 3.91 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.518/1.518, allocations: 230.5 MB / 258.2 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.SinCosEncoder,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_SinCosEncoder",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001891/0.001891, allocations: 68.08 kB / 378.5 MB, free: 2.809 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3565/0.3584, allocations: 53.39 MB / 431.9 MB, free: 6.594 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.003746/0.3621, allocations: 2.128 MB / 434 MB, free: 4.465 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001402/0.3635, allocations: 0.7011 MB / 434.7 MB, free: 3.758 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001314/0.3637, allocations: 11.88 kB / 434.7 MB, free: 3.746 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001928/0.3639, allocations: 47.52 kB / 434.8 MB, free: 3.699 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001972/0.3641, allocations: 43.59 kB / 434.8 MB, free: 3.656 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000311/0.3644, allocations: 103.8 kB / 434.9 MB, free: 3.555 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003145/0.3647, allocations: 235.7 kB / 435.2 MB, free: 3.324 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002086/0.3649, allocations: 72.03 kB / 435.2 MB, free: 3.254 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002222/0.3651, allocations: 107.6 kB / 435.3 MB, free: 3.148 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001742/0.3653, allocations: 111.4 kB / 435.4 MB, free: 3.039 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.002e-05/0.3653, allocations: 20 kB / 435.5 MB, free: 3.02 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.804e-05/0.3654, allocations: 35.98 kB / 435.5 MB, free: 2.984 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.443e-05/0.3655, allocations: 59.77 kB / 435.6 MB, free: 2.926 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001001/0.3656, allocations: 83.53 kB / 435.6 MB, free: 2.844 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003763/0.366, allocations: 253.1 kB / 435.9 MB, free: 2.598 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.366, allocations: 0 / 435.9 MB, free: 2.598 MB / 334.1 MB Notification: Performance of FrontEnd: time 4.047e-06/0.366, allocations: 3.984 kB / 435.9 MB, free: 2.594 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.271e-06/0.366, allocations: 0 / 435.9 MB, free: 2.594 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.0009377/0.367, allocations: 493.3 kB / 436.4 MB, free: 2.082 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.261e-05/0.367, allocations: 12.03 kB / 436.4 MB, free: 2.07 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.791e-05/0.367, allocations: 4.625 kB / 436.4 MB, free: 2.066 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.901e-05/0.3671, allocations: 58.72 kB / 436.4 MB, free: 2 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001367/0.3672, allocations: 28.8 kB / 436.5 MB, free: 1.973 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003049/0.3675, allocations: 194.7 kB / 436.7 MB, free: 1.758 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.648e-05/0.3676, allocations: 20.75 kB / 436.7 MB, free: 1.734 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.09e-05/0.3676, allocations: 24.38 kB / 436.7 MB, free: 1.711 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005093/0.3681, allocations: 254.6 kB / 437 MB, free: 1.449 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.875e-05/0.3681, allocations: 4 kB / 437 MB, free: 1.445 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.228e-05/0.3682, allocations: 4 kB / 437 MB, free: 1.441 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.229e-05/0.3682, allocations: 20.36 kB / 437 MB, free: 1.422 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004516/0.3686, allocations: 189.6 kB / 437.2 MB, free: 1.238 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001182/0.3698, allocations: 0.7631 MB / 437.9 MB, free: 432 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003651/0.3702, allocations: 169.9 kB / 438.1 MB, free: 256 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002107/0.3704, allocations: 96.8 kB / 438.2 MB, free: 156 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.969e-05/0.3705, allocations: 4.375 kB / 438.2 MB, free: 152 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.144e-05/0.3705, allocations: 42.5 kB / 438.2 MB, free: 100 kB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 1.473e-06/0.3705, allocations: 0 / 438.2 MB, free: 100 kB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.001486/0.372, allocations: 0.6569 MB / 438.9 MB, free: 15.4 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.57e-05/0.372, allocations: 55.41 kB / 439 MB, free: 15.34 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002232/0.3723, allocations: 213 kB / 439.2 MB, free: 15.12 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.602e-05/0.3723, allocations: 29.7 kB / 439.2 MB, free: 15.09 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000125/0.3724, allocations: 148.5 kB / 439.3 MB, free: 14.93 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.473e-05/0.3725, allocations: 87.27 kB / 439.4 MB, free: 14.85 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.208e-05/0.3726, allocations: 57.69 kB / 439.5 MB, free: 14.79 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001508/0.3727, allocations: 334.8 kB / 439.8 MB, free: 14.45 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001914/0.3729, allocations: 75.95 kB / 439.9 MB, free: 14.38 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002341/0.3731, allocations: 132 kB / 440 MB, free: 14.23 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004156/0.3736, allocations: 214.9 kB / 440.2 MB, free: 14.02 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.172e-06/0.3736, allocations: 3.938 kB / 440.2 MB, free: 14.01 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005593/0.3741, allocations: 281.3 kB / 440.5 MB, free: 13.73 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.77e-05/0.3741, allocations: 8 kB / 440.5 MB, free: 13.72 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.3741, allocations: 0 / 440.5 MB, free: 13.72 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.861e-05/0.3742, allocations: 4 kB / 440.5 MB, free: 13.72 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002796/0.3744, allocations: 59.89 kB / 440.6 MB, free: 13.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.636e-06/0.3745, allocations: 0 / 440.6 MB, free: 13.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001296/0.3746, allocations: 15.98 kB / 440.6 MB, free: 13.64 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.109e-05/0.3746, allocations: 16.06 kB / 440.6 MB, free: 13.63 MB / 350.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.0001416/0.3747, allocations: 145.6 kB / 440.7 MB, free: 13.48 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.113e-05/0.3748, allocations: 23.86 kB / 440.8 MB, free: 13.45 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006258/0.3754, allocations: 295.2 kB / 441 MB, free: 13.16 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.3e-06/0.3754, allocations: 4 kB / 441.1 MB, free: 13.15 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.3754, allocations: 0 / 441.1 MB, free: 13.15 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.863e-06/0.3754, allocations: 3.984 kB / 441.1 MB, free: 13.15 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001051/0.3765, allocations: 0.6275 MB / 441.7 MB, free: 12.47 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.659e-06/0.3765, allocations: 3.984 kB / 441.7 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002814/0.3768, allocations: 55.91 kB / 441.7 MB, free: 12.41 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.587e-06/0.3768, allocations: 3.938 kB / 441.7 MB, free: 12.41 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.82e-05/0.3768, allocations: 11.94 kB / 441.8 MB, free: 12.39 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.252e-06/0.3768, allocations: 8.047 kB / 441.8 MB, free: 12.39 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.076e-06/0.3768, allocations: 4 kB / 441.8 MB, free: 12.38 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008498/0.3777, allocations: 482.6 kB / 442.2 MB, free: 11.89 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.125e-05/0.3777, allocations: 43.84 kB / 442.3 MB, free: 11.85 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.943e-05/0.3778, allocations: 11.94 kB / 442.3 MB, free: 11.84 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001468/0.3779, allocations: 11.98 kB / 442.3 MB, free: 11.82 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.367e-05/0.378, allocations: 19.91 kB / 442.3 MB, free: 11.8 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.284e-05/0.378, allocations: 15.98 kB / 442.3 MB, free: 11.79 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001518/0.3782, allocations: 152.5 kB / 442.5 MB, free: 11.64 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3782, allocations: 0 / 442.5 MB, free: 11.64 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003025/0.3785, allocations: 51.94 kB / 442.5 MB, free: 11.59 MB / 350.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.001217/0.3797, allocations: 1.031 MB / 443.6 MB, free: 10.53 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005193/0.3802, allocations: 203.9 kB / 443.8 MB, free: 10.33 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.3802, allocations: 3.938 kB / 443.8 MB, free: 10.33 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002286/0.3805, allocations: 115.9 kB / 443.9 MB, free: 10.21 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003684/0.3808, allocations: 24.44 kB / 443.9 MB, free: 10.19 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003637/0.3845, allocations: 2.7 MB / 446.6 MB, free: 7.391 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001656/0.3846, allocations: 159.2 kB / 446.8 MB, free: 7.207 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001448/0.3848, allocations: 49.91 kB / 446.8 MB, free: 7.156 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001466/0.3849, allocations: 83.41 kB / 446.9 MB, free: 7.078 MB / 350.1 MB Notification: Performance of SimCode: time 6.21e-07/0.3849, allocations: 0 / 446.9 MB, free: 7.078 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02676/0.4117, allocations: 4.818 MB / 451.7 MB, free: 2.371 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.15/11.56, allocations: 11.53 kB / 451.7 MB, free: 2.363 MB / 350.1 MB " [Timeout remaining time 648] (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 --stepSize=5e-05 --timeout=50 --tolerance=1e-05 Modelica_trunk_Modelica_Blocks_Examples_SinCosEncoder.fmu > Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder.pipe 2>&1) [Timeout 52.5] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.963724771980196]