Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.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.001294/0.001294, allocations: 101.5 kB / 21.21 MB, free: 0.5078 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.002049/0.002049, allocations: 191.6 kB / 24.49 MB, free: 3.711 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.377/1.377, allocations: 225.7 MB / 253.3 MB, free: 12.79 MB / 206.1 MB " [Timeout remaining time 178] 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.Clocked.Examples.Elementary.RealSignals.Sample1,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample1",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.Sample1,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample1",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001447/0.001447, allocations: 47.92 kB / 371.2 MB, free: 9.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.242/0.2434, allocations: 52.18 MB / 423.4 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Sample1): time 0.002745/0.2462, allocations: 1.572 MB / 424.9 MB, free: 12.82 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007859/0.247, allocations: 438.9 kB / 425.4 MB, free: 12.39 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.958e-05/0.247, allocations: 3.938 kB / 425.4 MB, free: 12.39 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.908e-05/0.2471, allocations: 7.938 kB / 425.4 MB, free: 12.38 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001144/0.2472, allocations: 11.92 kB / 425.4 MB, free: 12.37 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002481/0.2474, allocations: 51.77 kB / 425.4 MB, free: 12.32 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001019/0.2475, allocations: 43.84 kB / 425.5 MB, free: 12.27 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.013e-05/0.2476, allocations: 10.11 kB / 425.5 MB, free: 12.27 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.966e-05/0.2477, allocations: 23.86 kB / 425.5 MB, free: 12.24 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.579e-05/0.2477, allocations: 19.86 kB / 425.5 MB, free: 12.22 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.747e-05/0.2478, allocations: 7.984 kB / 425.5 MB, free: 12.21 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.285e-05/0.2478, allocations: 4 kB / 425.5 MB, free: 12.21 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.981e-05/0.2478, allocations: 11.98 kB / 425.6 MB, free: 12.2 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.152e-05/0.2479, allocations: 23.81 kB / 425.6 MB, free: 12.18 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001209/0.248, allocations: 55.73 kB / 425.6 MB, free: 12.12 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.248, allocations: 0 / 425.6 MB, free: 12.12 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.248, allocations: 0 / 425.6 MB, free: 12.12 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.649e-06/0.248, allocations: 0 / 425.6 MB, free: 12.12 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0004627/0.2485, allocations: 302 kB / 425.9 MB, free: 11.8 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.753e-05/0.2485, allocations: 8.031 kB / 425.9 MB, free: 11.79 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.523e-05/0.2485, allocations: 4.188 kB / 425.9 MB, free: 11.79 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.214e-05/0.2485, allocations: 30.75 kB / 426 MB, free: 11.75 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.662e-05/0.2486, allocations: 8.891 kB / 426 MB, free: 11.74 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000244/0.2488, allocations: 152.7 kB / 426.1 MB, free: 11.57 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.591e-06/0.2488, allocations: 384 / 426.1 MB, free: 11.57 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.698e-05/0.2488, allocations: 8.375 kB / 426.1 MB, free: 11.56 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002739/0.2491, allocations: 116.9 kB / 426.3 MB, free: 11.43 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.105e-06/0.2491, allocations: 4 kB / 426.3 MB, free: 11.42 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.925e-06/0.2491, allocations: 0 / 426.3 MB, free: 11.42 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.011e-06/0.2491, allocations: 7.984 kB / 426.3 MB, free: 11.41 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.289e-05/0.2492, allocations: 23.92 kB / 426.3 MB, free: 11.39 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003051/0.2495, allocations: 236.8 kB / 426.5 MB, free: 11.11 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001758/0.2497, allocations: 57.14 kB / 426.6 MB, free: 11.04 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.133e-05/0.2498, allocations: 33.77 kB / 426.6 MB, free: 11 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.485e-05/0.2498, allocations: 0 / 426.6 MB, free: 11 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.651e-05/0.2498, allocations: 34.56 kB / 426.6 MB, free: 10.96 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 8.81e-07/0.2498, allocations: 0 / 426.6 MB, free: 10.96 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002458/0.2501, allocations: 81.56 kB / 426.7 MB, free: 10.87 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.18e-05/0.2501, allocations: 81.11 kB / 426.8 MB, free: 10.77 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001196/0.2502, allocations: 137.8 kB / 426.9 MB, free: 10.63 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.07e-05/0.2503, allocations: 29.7 kB / 427 MB, free: 10.59 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.206e-05/0.2503, allocations: 84.14 kB / 427 MB, free: 10.51 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.706e-05/0.2503, allocations: 7.953 kB / 427.1 MB, free: 10.5 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.489e-05/0.2504, allocations: 17.72 kB / 427.1 MB, free: 10.48 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001306/0.2505, allocations: 318.8 kB / 427.4 MB, free: 10.16 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.403e-05/0.2505, allocations: 19.92 kB / 427.4 MB, free: 10.14 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.282e-05/0.2506, allocations: 31.56 kB / 427.4 MB, free: 10.09 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.012e-05/0.2507, allocations: 43.36 kB / 427.5 MB, free: 10.04 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.2507, allocations: 0 / 427.5 MB, free: 10.04 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001382/0.2508, allocations: 73.56 kB / 427.5 MB, free: 9.961 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.823e-05/0.2508, allocations: 12.12 kB / 427.6 MB, free: 9.949 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.53e-06/0.2509, allocations: 0 / 427.6 MB, free: 9.949 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.788e-05/0.2509, allocations: 0 / 427.6 MB, free: 9.949 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.403e-05/0.2509, allocations: 11.98 kB / 427.6 MB, free: 9.938 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.458e-06/0.251, allocations: 0 / 427.6 MB, free: 9.938 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.069e-05/0.251, allocations: 4 kB / 427.6 MB, free: 9.934 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.086e-05/0.251, allocations: 4 kB / 427.6 MB, free: 9.93 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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 9.609e-05/0.2511, allocations: 129.6 kB / 427.7 MB, free: 9.793 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.318e-05/0.2512, allocations: 53.59 kB / 427.8 MB, free: 9.734 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.793e-05/0.2512, allocations: 16.33 kB / 427.8 MB, free: 9.711 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.384e-06/0.2512, allocations: 4 kB / 427.8 MB, free: 9.707 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.007e-06/0.2512, allocations: 0 / 427.8 MB, free: 9.707 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.675e-06/0.2512, allocations: 3.938 kB / 427.8 MB, free: 9.703 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001684/0.2514, allocations: 140.7 kB / 427.9 MB, free: 9.523 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.2514, allocations: 0 / 427.9 MB, free: 9.523 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.734e-05/0.2514, allocations: 11.98 kB / 427.9 MB, free: 9.512 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/0.2514, allocations: 0 / 427.9 MB, free: 9.512 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.502e-06/0.2515, allocations: 0 / 427.9 MB, free: 9.512 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.198e-06/0.2515, allocations: 4 kB / 427.9 MB, free: 9.508 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.614e-06/0.2515, allocations: 3.938 kB / 427.9 MB, free: 9.504 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002035/0.2517, allocations: 176.6 kB / 428.1 MB, free: 9.312 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.927e-05/0.2517, allocations: 15.97 kB / 428.1 MB, free: 9.297 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.583e-05/0.2517, allocations: 7.984 kB / 428.1 MB, free: 9.289 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.378e-05/0.2518, allocations: 0 / 428.1 MB, free: 9.289 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.2e-05/0.2518, allocations: 8 kB / 428.1 MB, free: 9.281 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.321e-06/0.2518, allocations: 3.984 kB / 428.1 MB, free: 9.277 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.446e-05/0.2519, allocations: 106.1 kB / 428.2 MB, free: 9.176 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2519, allocations: 0 / 428.2 MB, free: 9.176 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002174/0.2521, allocations: 4 kB / 428.3 MB, free: 9.172 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * 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 (4): * Single equations (assignments): 4 * 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.0005132/0.2526, allocations: 0.7132 MB / 429 MB, free: 8.43 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001421/0.2528, allocations: 27.92 kB / 429 MB, free: 8.402 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.2528, allocations: 0 / 429 MB, free: 8.402 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 5.053e-05/0.2528, allocations: 11.98 kB / 429 MB, free: 8.391 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003373/0.2532, allocations: 16.03 kB / 429 MB, free: 8.375 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001432/0.2546, allocations: 1.359 MB / 430.4 MB, free: 6.914 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.226e-05/0.2547, allocations: 86.55 kB / 430.5 MB, free: 6.812 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.337e-05/0.2547, allocations: 8 kB / 430.5 MB, free: 6.805 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.321e-05/0.2548, allocations: 19.42 kB / 430.5 MB, free: 6.785 MB / 334.1 MB Notification: Performance of SimCode: time 5.01e-07/0.2548, allocations: 0 / 430.5 MB, free: 6.785 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02928/0.2841, allocations: 1.761 MB / 432.2 MB, free: 5.18 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.59/10.87, allocations: 3.938 kB / 432.3 MB, free: 5.176 MB / 334.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample1_fmu --startTime=0 --stopTime=0.2 --stepSize=3.99122e-05 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample1.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/Sample1/Sample1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,assignClock.y,sample1.y Variables in the result:assignClock.u,assignClock.y,periodicClock.factor,periodicClock.resolution,periodicClock.useSolver,sample1.u,sample1.y,sine.amplitude,sine.f,sine.offset,sine.phase,sine.startTime,sine.y,time [Calling sys.exit(0), Time elapsed: 13.315977226011455]