Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Blocks.Examples.SinCosEncoder.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001278/0.001278, allocations: 112.2 kB / 21.22 MB, free: 0.7305 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00135/0.00135, allocations: 212.2 kB / 24.53 MB, free: 4.07 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.359/1.359, allocations: 230.6 MB / 258.3 MB, free: 8.02 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.SinCosEncoder,fileNamePrefix="Modelica_4_1_0_Modelica_Blocks_Examples_SinCosEncoder",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.SinCosEncoder,fileNamePrefix="Modelica_4_1_0_Modelica_Blocks_Examples_SinCosEncoder",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001415/0.001415, allocations: 43.94 kB / 378.6 MB, free: 3.145 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2312/0.2326, allocations: 53.37 MB / 431.9 MB, free: 6.852 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.003432/0.236, allocations: 2.233 MB / 434.2 MB, free: 4.613 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001309/0.2373, allocations: 0.7633 MB / 434.9 MB, free: 3.844 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001234/0.2374, allocations: 11.88 kB / 434.9 MB, free: 3.832 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001876/0.2376, allocations: 47.53 kB / 435 MB, free: 3.785 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001732/0.2378, allocations: 43.58 kB / 435 MB, free: 3.742 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002725/0.2381, allocations: 107.7 kB / 435.1 MB, free: 3.637 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002818/0.2384, allocations: 235.7 kB / 435.4 MB, free: 3.406 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001847/0.2385, allocations: 77.64 kB / 435.4 MB, free: 3.332 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001921/0.2387, allocations: 103.6 kB / 435.5 MB, free: 3.23 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001615/0.2389, allocations: 115.5 kB / 435.6 MB, free: 3.117 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.064e-05/0.2389, allocations: 16 kB / 435.7 MB, free: 3.102 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.499e-05/0.239, allocations: 32 kB / 435.7 MB, free: 3.07 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.208e-05/0.2391, allocations: 63.75 kB / 435.8 MB, free: 3.008 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.745e-05/0.2392, allocations: 107.3 kB / 435.9 MB, free: 2.902 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000306/0.2395, allocations: 255.6 kB / 436.1 MB, free: 2.66 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.2395, allocations: 0 / 436.1 MB, free: 2.66 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.2395, allocations: 0 / 436.1 MB, free: 2.66 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.242e-06/0.2395, allocations: 0 / 436.1 MB, free: 2.66 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.0008249/0.2403, allocations: 481.5 kB / 436.6 MB, free: 2.16 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.544e-05/0.2404, allocations: 12.02 kB / 436.6 MB, free: 2.148 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.752e-05/0.2404, allocations: 12.62 kB / 436.6 MB, free: 2.137 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.558e-05/0.2404, allocations: 58.67 kB / 436.7 MB, free: 2.07 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001163/0.2405, allocations: 32.75 kB / 436.7 MB, free: 2.039 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002826/0.2408, allocations: 195.3 kB / 436.9 MB, free: 1.824 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.631e-05/0.2409, allocations: 16.81 kB / 436.9 MB, free: 1.805 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.036e-05/0.2409, allocations: 20.38 kB / 436.9 MB, free: 1.785 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004979/0.2414, allocations: 262.6 kB / 437.2 MB, free: 1.516 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.54e-05/0.2414, allocations: 3.938 kB / 437.2 MB, free: 1.512 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.058e-05/0.2414, allocations: 8 kB / 437.2 MB, free: 1.504 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.484e-05/0.2415, allocations: 12.44 kB / 437.2 MB, free: 1.492 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004395/0.2419, allocations: 185.6 kB / 437.4 MB, free: 1.312 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001126/0.243, allocations: 0.7943 MB / 438.2 MB, free: 476 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000351/0.2434, allocations: 174.4 kB / 438.3 MB, free: 292 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002087/0.2436, allocations: 104.8 kB / 438.4 MB, free: 184 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.613e-05/0.2436, allocations: 4.375 kB / 438.5 MB, free: 180 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.05e-05/0.2437, allocations: 34.5 kB / 438.5 MB, free: 136 kB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 1.373e-06/0.2437, allocations: 0 / 438.5 MB, free: 136 kB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.001459/0.2452, allocations: 0.6629 MB / 439.1 MB, free: 15.43 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.15e-05/0.2452, allocations: 51.41 kB / 439.2 MB, free: 15.37 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002068/0.2454, allocations: 216.9 kB / 439.4 MB, free: 15.15 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.645e-05/0.2454, allocations: 29.7 kB / 439.4 MB, free: 15.11 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001066/0.2455, allocations: 152.4 kB / 439.6 MB, free: 14.96 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.395e-05/0.2456, allocations: 87.28 kB / 439.7 MB, free: 14.88 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.191e-05/0.2457, allocations: 49.69 kB / 439.7 MB, free: 14.82 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001452/0.2458, allocations: 334.8 kB / 440 MB, free: 14.48 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001958/0.246, allocations: 83.95 kB / 440.1 MB, free: 14.4 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002247/0.2463, allocations: 128 kB / 440.3 MB, free: 14.27 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004117/0.2467, allocations: 214.9 kB / 440.5 MB, free: 14.05 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.2467, allocations: 0 / 440.5 MB, free: 14.05 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005263/0.2472, allocations: 277.3 kB / 440.7 MB, free: 13.77 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.562e-05/0.2472, allocations: 4 kB / 440.7 MB, free: 13.77 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.929e-06/0.2472, allocations: 4 kB / 440.7 MB, free: 13.76 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.335e-05/0.2472, allocations: 0 / 440.7 MB, free: 13.76 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000281/0.2475, allocations: 67.95 kB / 440.8 MB, free: 13.7 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.009e-05/0.2475, allocations: 4 kB / 440.8 MB, free: 13.69 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001249/0.2476, allocations: 16.05 kB / 440.8 MB, free: 13.68 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.793e-05/0.2477, allocations: 8 kB / 440.8 MB, free: 13.67 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.0001422/0.2478, allocations: 153.6 kB / 441 MB, free: 13.51 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.642e-05/0.2479, allocations: 19.86 kB / 441 MB, free: 13.49 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006019/0.2485, allocations: 303.2 kB / 441.3 MB, free: 13.18 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.825e-06/0.2485, allocations: 0 / 441.3 MB, free: 13.18 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.957e-06/0.2485, allocations: 0 / 441.3 MB, free: 13.18 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.306e-06/0.2485, allocations: 11.97 kB / 441.3 MB, free: 13.17 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001082/0.2496, allocations: 0.6508 MB / 442 MB, free: 12.47 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.2496, allocations: 0 / 442 MB, free: 12.47 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002681/0.2498, allocations: 59.94 kB / 442 MB, free: 12.41 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.494e-06/0.2498, allocations: 3.938 kB / 442 MB, free: 12.41 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.434e-05/0.2498, allocations: 15.92 kB / 442 MB, free: 12.39 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.184e-06/0.2499, allocations: 0 / 442 MB, free: 12.39 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.2499, allocations: 0 / 442 MB, free: 12.39 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007974/0.2507, allocations: 490.3 kB / 442.5 MB, free: 11.89 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.908e-05/0.2507, allocations: 43.84 kB / 442.6 MB, free: 11.85 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.389e-05/0.2508, allocations: 7.938 kB / 442.6 MB, free: 11.84 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001463/0.2509, allocations: 15.98 kB / 442.6 MB, free: 11.82 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.502e-05/0.251, allocations: 15.97 kB / 442.6 MB, free: 11.81 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.565e-05/0.251, allocations: 8 kB / 442.6 MB, free: 11.8 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001368/0.2511, allocations: 156.5 kB / 442.8 MB, free: 11.65 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2511, allocations: 0 / 442.8 MB, free: 11.65 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002861/0.2514, allocations: 51.94 kB / 442.8 MB, free: 11.6 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.001095/0.2525, allocations: 1.027 MB / 443.8 MB, free: 10.54 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004835/0.253, allocations: 211.8 kB / 444 MB, free: 10.34 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.973e-06/0.253, allocations: 0 / 444 MB, free: 10.34 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002265/0.2532, allocations: 111.9 kB / 444.2 MB, free: 10.23 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003175/0.2535, allocations: 28.31 kB / 444.2 MB, free: 10.2 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003507/0.257, allocations: 2.71 MB / 446.9 MB, free: 7.395 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004001/0.2574, allocations: 0.76 MB / 447.7 MB, free: 6.605 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001454/0.2576, allocations: 53.89 kB / 447.7 MB, free: 6.551 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001389/0.2577, allocations: 83.41 kB / 447.8 MB, free: 6.473 MB / 350.1 MB Notification: Performance of SimCode: time 6.81e-07/0.2577, allocations: 4 kB / 447.8 MB, free: 6.469 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02655/0.2843, allocations: 4.848 MB / 452.6 MB, free: 1.762 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.05/11.33, allocations: 7.297 kB / 452.6 MB, free: 1.758 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.SinCosEncoder.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.SinCosEncoder.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.SinCosEncoder.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.SinCosEncoder.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Blocks.Examples.SinCosEncoder_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Blocks_Examples_SinCosEncoder_fmu --startTime=0 --stopTime=1 --stepSize=5e-05 --timeout=50 --tolerance=1e-05 Modelica_4_1_0_Modelica_Blocks_Examples_SinCosEncoder.fmu > Modelica_4.1.0_Modelica.Blocks.Examples.SinCosEncoder.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_4.1.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.408678509003948]