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.001274/0.001274, allocations: 109.1 kB / 21.22 MB, free: 0.7344 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.00146/0.00146, allocations: 207.5 kB / 24.53 MB, free: 4.07 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.481/1.481, allocations: 230.5 MB / 258.2 MB, free: 8.027 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.001875/0.001875, allocations: 63.91 kB / 378.6 MB, free: 3.027 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4409/0.4427, allocations: 53.41 MB / 432 MB, free: 6.691 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.004358/0.4471, allocations: 2.237 MB / 434.2 MB, free: 4.449 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001546/0.4486, allocations: 0.7594 MB / 435 MB, free: 3.684 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001454/0.4488, allocations: 7.938 kB / 435 MB, free: 3.676 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002311/0.449, allocations: 43.53 kB / 435 MB, free: 3.633 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002569/0.4493, allocations: 55.5 kB / 435.1 MB, free: 3.578 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003745/0.4497, allocations: 107.7 kB / 435.2 MB, free: 3.473 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003684/0.45, allocations: 235.6 kB / 435.4 MB, free: 3.242 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002606/0.4503, allocations: 83.05 kB / 435.5 MB, free: 3.164 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002843/0.4506, allocations: 107.6 kB / 435.6 MB, free: 3.059 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002005/0.4508, allocations: 103.5 kB / 435.7 MB, free: 2.957 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.893e-05/0.4508, allocations: 20 kB / 435.7 MB, free: 2.938 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001102/0.4509, allocations: 39.98 kB / 435.8 MB, free: 2.898 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.956e-05/0.451, allocations: 51.83 kB / 435.8 MB, free: 2.848 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001257/0.4511, allocations: 111.3 kB / 435.9 MB, free: 2.738 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004127/0.4515, allocations: 251.6 kB / 436.2 MB, free: 2.5 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.392e-06/0.4515, allocations: 0 / 436.2 MB, free: 2.5 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.986e-06/0.4516, allocations: 0 / 436.2 MB, free: 2.5 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.117e-06/0.4516, allocations: 0 / 436.2 MB, free: 2.5 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.001052/0.4526, allocations: 485.4 kB / 436.6 MB, free: 1.996 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.896e-05/0.4527, allocations: 12.03 kB / 436.6 MB, free: 1.984 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.079e-05/0.4527, allocations: 8.609 kB / 436.7 MB, free: 1.977 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.953e-05/0.4528, allocations: 58.67 kB / 436.7 MB, free: 1.91 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001696/0.4529, allocations: 32.75 kB / 436.7 MB, free: 1.879 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000328/0.4533, allocations: 194.7 kB / 436.9 MB, free: 1.664 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.09e-05/0.4533, allocations: 16.81 kB / 436.9 MB, free: 1.645 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.443e-05/0.4533, allocations: 24.38 kB / 437 MB, free: 1.621 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005368/0.4539, allocations: 258.5 kB / 437.2 MB, free: 1.355 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.683e-05/0.4539, allocations: 0 / 437.2 MB, free: 1.355 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.04e-05/0.4539, allocations: 15.97 kB / 437.2 MB, free: 1.34 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.379e-05/0.454, allocations: 12.44 kB / 437.3 MB, free: 1.328 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005171/0.4545, allocations: 193.6 kB / 437.4 MB, free: 1.141 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001476/0.456, allocations: 0.7943 MB / 438.2 MB, free: 300 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004085/0.4564, allocations: 176.5 kB / 438.4 MB, free: 120 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002248/0.4566, allocations: 96.8 kB / 438.5 MB, free: 20 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.692e-05/0.4567, allocations: 12.36 kB / 438.5 MB, free: 8 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.305e-05/0.4568, allocations: 42.44 kB / 438.6 MB, free: 15.96 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.483e-06/0.4568, allocations: 0 / 438.6 MB, free: 15.96 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.001651/0.4584, allocations: 0.6491 MB / 439.2 MB, free: 15.27 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.392e-05/0.4585, allocations: 55.41 kB / 439.3 MB, free: 15.2 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002419/0.4587, allocations: 217 kB / 439.5 MB, free: 14.98 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.514e-05/0.4587, allocations: 29.7 kB / 439.5 MB, free: 14.95 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001414/0.4589, allocations: 148.5 kB / 439.6 MB, free: 14.8 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.44e-05/0.459, allocations: 83.28 kB / 439.7 MB, free: 14.71 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.534e-05/0.459, allocations: 57.62 kB / 439.8 MB, free: 14.65 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001556/0.4592, allocations: 330.8 kB / 440.1 MB, free: 14.32 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002073/0.4594, allocations: 83.94 kB / 440.2 MB, free: 14.24 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002344/0.4596, allocations: 132 kB / 440.3 MB, free: 14.1 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004417/0.4601, allocations: 214.3 kB / 440.5 MB, free: 13.88 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.012e-06/0.4601, allocations: 0 / 440.5 MB, free: 13.88 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005733/0.4607, allocations: 281.3 kB / 440.8 MB, free: 13.6 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.392e-05/0.4607, allocations: 4 kB / 440.8 MB, free: 13.59 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.356e-06/0.4607, allocations: 0 / 440.8 MB, free: 13.59 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.275e-05/0.4607, allocations: 7.938 kB / 440.8 MB, free: 13.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002943/0.461, allocations: 59.95 kB / 440.9 MB, free: 13.53 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.257e-06/0.461, allocations: 0 / 440.9 MB, free: 13.53 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001215/0.4611, allocations: 15.98 kB / 440.9 MB, free: 13.51 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.116e-05/0.4612, allocations: 16 kB / 440.9 MB, free: 13.5 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.000192/0.4614, allocations: 145.7 kB / 441 MB, free: 13.34 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.386e-05/0.4614, allocations: 23.86 kB / 441.1 MB, free: 13.32 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006766/0.4621, allocations: 299.2 kB / 441.4 MB, free: 13.02 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.4e-06/0.4621, allocations: 4 kB / 441.4 MB, free: 13.02 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.603e-06/0.4621, allocations: 0 / 441.4 MB, free: 13.02 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.516e-06/0.4621, allocations: 3.984 kB / 441.4 MB, free: 13.01 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001138/0.4632, allocations: 0.6548 MB / 442 MB, free: 12.3 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.953e-06/0.4632, allocations: 0 / 442 MB, free: 12.3 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002779/0.4635, allocations: 55.97 kB / 442.1 MB, free: 12.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.04e-06/0.4635, allocations: 4 kB / 442.1 MB, free: 12.25 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.557e-05/0.4636, allocations: 11.92 kB / 442.1 MB, free: 12.23 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.566e-06/0.4636, allocations: 4.031 kB / 442.1 MB, free: 12.23 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.4636, allocations: 4 kB / 442.1 MB, free: 12.23 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008154/0.4644, allocations: 482.5 kB / 442.6 MB, free: 11.73 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.721e-05/0.4644, allocations: 39.86 kB / 442.6 MB, free: 11.7 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.351e-05/0.4645, allocations: 15.92 kB / 442.6 MB, free: 11.68 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001424/0.4646, allocations: 12 kB / 442.6 MB, free: 11.67 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.299e-05/0.4647, allocations: 19.95 kB / 442.7 MB, free: 11.65 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.819e-05/0.4647, allocations: 11.98 kB / 442.7 MB, free: 11.64 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001591/0.4649, allocations: 160.5 kB / 442.8 MB, free: 11.48 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4649, allocations: 3.938 kB / 442.8 MB, free: 11.48 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003064/0.4652, allocations: 47.94 kB / 442.9 MB, free: 11.43 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.001371/0.4666, allocations: 1.023 MB / 443.9 MB, free: 10.38 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005748/0.4671, allocations: 211.8 kB / 444.1 MB, free: 10.17 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.4671, allocations: 4.125 kB / 444.1 MB, free: 10.17 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002328/0.4674, allocations: 103.9 kB / 444.2 MB, free: 10.07 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003934/0.4678, allocations: 32.36 kB / 444.2 MB, free: 10.03 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004052/0.4718, allocations: 2.704 MB / 446.9 MB, free: 7.23 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004805/0.4723, allocations: 0.7639 MB / 447.7 MB, free: 6.434 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001287/0.4724, allocations: 45.91 kB / 447.8 MB, free: 6.387 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001464/0.4726, allocations: 87.41 kB / 447.8 MB, free: 6.305 MB / 350.1 MB Notification: Performance of SimCode: time 6.41e-07/0.4726, allocations: 0 / 447.8 MB, free: 6.305 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02847/0.501, allocations: 4.851 MB / 452.7 MB, free: 1.559 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.98/12.48, allocations: 19.28 kB / 452.7 MB, free: 1.543 MB / 350.1 MB " [Timeout remaining time 647] (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: 15.979188257013448]