Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001241/0.001241, allocations: 108.6 kB / 21.22 MB, free: 0.75 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001317/0.001317, allocations: 187.8 kB / 24.5 MB, free: 4.02 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.33/1.33, allocations: 225.7 MB / 253.3 MB, free: 13.05 MB / 206.1 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.SinCosEncoder,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_SinCosEncoder",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.SinCosEncoder,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_SinCosEncoder",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001465/0.001465, allocations: 47.92 kB / 371.2 MB, free: 9.961 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2316/0.2331, allocations: 52.19 MB / 423.4 MB, free: 14.75 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.003379/0.2365, allocations: 2.225 MB / 425.6 MB, free: 12.52 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001256/0.2377, allocations: 0.7049 MB / 426.3 MB, free: 11.81 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000128/0.2379, allocations: 7.938 kB / 426.4 MB, free: 11.8 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001971/0.2381, allocations: 43.53 kB / 426.4 MB, free: 11.76 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002007/0.2383, allocations: 55.58 kB / 426.4 MB, free: 11.71 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002879/0.2386, allocations: 103.7 kB / 426.6 MB, free: 11.61 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002983/0.2389, allocations: 231.7 kB / 426.8 MB, free: 11.38 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002079/0.2391, allocations: 88 kB / 426.9 MB, free: 11.29 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001594/0.2392, allocations: 95.56 kB / 427 MB, free: 11.2 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001685/0.2394, allocations: 103.5 kB / 427.1 MB, free: 11.1 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.237e-05/0.2394, allocations: 23.98 kB / 427.1 MB, free: 11.07 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.664e-05/0.2395, allocations: 27.98 kB / 427.1 MB, free: 11.05 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.955e-05/0.2396, allocations: 59.78 kB / 427.2 MB, free: 10.99 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001047/0.2397, allocations: 107.3 kB / 427.3 MB, free: 10.88 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003275/0.24, allocations: 251.6 kB / 427.5 MB, free: 10.64 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.24, allocations: 0 / 427.5 MB, free: 10.64 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.24, allocations: 0 / 427.5 MB, free: 10.64 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.155e-06/0.24, allocations: 0 / 427.5 MB, free: 10.64 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.0009018/0.241, allocations: 481.5 kB / 428 MB, free: 10.14 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.995e-05/0.241, allocations: 12.03 kB / 428 MB, free: 10.13 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.154e-05/0.241, allocations: 8.625 kB / 428 MB, free: 10.12 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.512e-05/0.2411, allocations: 62.61 kB / 428.1 MB, free: 10.05 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.429e-05/0.2411, allocations: 28.75 kB / 428.1 MB, free: 10.03 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002773/0.2414, allocations: 194.1 kB / 428.3 MB, free: 9.812 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.973e-05/0.2414, allocations: 20.38 kB / 428.3 MB, free: 9.789 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.033e-05/0.2415, allocations: 19.95 kB / 428.3 MB, free: 9.77 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004739/0.2419, allocations: 262.6 kB / 428.6 MB, free: 9.496 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.385e-05/0.242, allocations: 7.938 kB / 428.6 MB, free: 9.488 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.22e-05/0.242, allocations: 4 kB / 428.6 MB, free: 9.484 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.002e-05/0.242, allocations: 12.44 kB / 428.6 MB, free: 9.473 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004365/0.2424, allocations: 193.6 kB / 428.8 MB, free: 9.285 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00116/0.2436, allocations: 0.7866 MB / 429.6 MB, free: 8.445 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003626/0.244, allocations: 174.8 kB / 429.8 MB, free: 8.266 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002115/0.2442, allocations: 104.7 kB / 429.9 MB, free: 8.16 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.679e-05/0.2442, allocations: 11.97 kB / 429.9 MB, free: 8.148 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.368e-05/0.2443, allocations: 42.5 kB / 429.9 MB, free: 8.098 MB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 1.323e-06/0.2443, allocations: 0 / 429.9 MB, free: 8.098 MB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.001424/0.2457, allocations: 0.6488 MB / 430.6 MB, free: 7.418 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.155e-05/0.2457, allocations: 55.41 kB / 430.6 MB, free: 7.352 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002019/0.2459, allocations: 217 kB / 430.8 MB, free: 7.133 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.491e-05/0.246, allocations: 25.7 kB / 430.8 MB, free: 7.102 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001021/0.2461, allocations: 152.5 kB / 431 MB, free: 6.945 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.118e-05/0.2461, allocations: 87.22 kB / 431.1 MB, free: 6.859 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.747e-05/0.2462, allocations: 49.7 kB / 431.1 MB, free: 6.805 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001419/0.2464, allocations: 342.8 kB / 431.5 MB, free: 6.461 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001981/0.2466, allocations: 83.94 kB / 431.5 MB, free: 6.379 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002156/0.2468, allocations: 115.4 kB / 431.7 MB, free: 6.254 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004127/0.2472, allocations: 215.3 kB / 431.9 MB, free: 6.031 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.032e-06/0.2472, allocations: 4 kB / 431.9 MB, free: 6.027 MB / 334.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005281/0.2477, allocations: 272.5 kB / 432.1 MB, free: 5.758 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.816e-05/0.2477, allocations: 11.44 kB / 432.2 MB, free: 5.75 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.749e-06/0.2477, allocations: 8 kB / 432.2 MB, free: 5.742 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.426e-05/0.2478, allocations: 4 kB / 432.2 MB, free: 5.738 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000265/0.248, allocations: 55.95 kB / 432.2 MB, free: 5.684 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.706e-06/0.248, allocations: 3.938 kB / 432.2 MB, free: 5.68 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001237/0.2482, allocations: 19.92 kB / 432.2 MB, free: 5.66 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.329e-05/0.2482, allocations: 15.98 kB / 432.3 MB, free: 5.645 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.0001314/0.2483, allocations: 129.8 kB / 432.4 MB, free: 5.508 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.986e-05/0.2484, allocations: 23.86 kB / 432.4 MB, free: 5.484 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006033/0.249, allocations: 309 kB / 432.7 MB, free: 5.176 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.688e-06/0.249, allocations: 4 kB / 432.7 MB, free: 5.172 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.083e-06/0.249, allocations: 3.938 kB / 432.7 MB, free: 5.168 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.639e-06/0.249, allocations: 0 / 432.7 MB, free: 5.168 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001028/0.25, allocations: 0.6588 MB / 433.4 MB, free: 4.457 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.824e-06/0.25, allocations: 64 / 433.4 MB, free: 4.457 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002803/0.2503, allocations: 71.83 kB / 433.4 MB, free: 4.387 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.565e-06/0.2503, allocations: 0 / 433.4 MB, free: 4.387 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.26e-05/0.2503, allocations: 8 kB / 433.5 MB, free: 4.379 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.2503, allocations: 0 / 433.5 MB, free: 4.379 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.2503, allocations: 0 / 433.5 MB, free: 4.379 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000781/0.2511, allocations: 494.3 kB / 433.9 MB, free: 3.875 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.08e-05/0.2512, allocations: 43.83 kB / 434 MB, free: 3.832 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.241e-05/0.2512, allocations: 8 kB / 434 MB, free: 3.824 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001445/0.2514, allocations: 7.984 kB / 434 MB, free: 3.816 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.442e-05/0.2514, allocations: 19.97 kB / 434 MB, free: 3.797 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.665e-05/0.2514, allocations: 11.98 kB / 434 MB, free: 3.785 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001311/0.2516, allocations: 156.5 kB / 434.2 MB, free: 3.637 MB / 334.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2516, allocations: 0 / 434.2 MB, free: 3.637 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002798/0.2518, allocations: 48 kB / 434.2 MB, free: 3.59 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.001104/0.2529, allocations: 1.03 MB / 435.3 MB, free: 2.531 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004815/0.2534, allocations: 212 kB / 435.5 MB, free: 2.324 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.2534, allocations: 0 / 435.5 MB, free: 2.324 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002284/0.2537, allocations: 107.9 kB / 435.6 MB, free: 2.219 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003272/0.254, allocations: 20.62 kB / 435.6 MB, free: 2.195 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00347/0.2575, allocations: 2.712 MB / 438.3 MB, free: 15.38 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003886/0.2578, allocations: 0.7753 MB / 439.1 MB, free: 14.58 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001194/0.258, allocations: 45.91 kB / 439.1 MB, free: 14.54 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001321/0.2581, allocations: 83.41 kB / 439.2 MB, free: 14.46 MB / 350.1 MB Notification: Performance of SimCode: time 4.41e-07/0.2581, allocations: 0 / 439.2 MB, free: 14.46 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02858/0.2867, allocations: 4.907 MB / 444.1 MB, free: 9.691 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.35/11.64, allocations: 18.48 kB / 444.1 MB, free: 9.676 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_SinCosEncoder_fmu --startTime=0 --stopTime=1 --stepSize=5e-05 --timeout=50 --tolerance=1e-05 Modelica_4_0_0_Modelica_Blocks_Examples_SinCosEncoder.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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.71793963800883]