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.001249/0.001249, 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.001493/0.001493, allocations: 196.8 kB / 24.5 MB, free: 4.008 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.368/1.368, allocations: 225.6 MB / 253.3 MB, free: 13.04 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.001437/0.001437, allocations: 43.92 kB / 371.2 MB, free: 9.871 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2522/0.2536, allocations: 52.19 MB / 423.4 MB, free: 14.6 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Sample1): time 0.002761/0.2564, allocations: 1.602 MB / 425 MB, free: 12.99 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007941/0.2572, allocations: 474.8 kB / 425.5 MB, free: 12.52 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.347e-05/0.2573, allocations: 0 / 425.5 MB, free: 12.52 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.981e-05/0.2573, allocations: 7.938 kB / 425.5 MB, free: 12.52 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001261/0.2574, allocations: 19.86 kB / 425.5 MB, free: 12.5 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000262/0.2577, allocations: 39.89 kB / 425.6 MB, free: 12.46 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000105/0.2578, allocations: 43.8 kB / 425.6 MB, free: 12.41 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.357e-05/0.2579, allocations: 15.97 kB / 425.6 MB, free: 12.4 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.611e-05/0.258, allocations: 15.94 kB / 425.6 MB, free: 12.38 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.999e-05/0.258, allocations: 23.86 kB / 425.7 MB, free: 12.36 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.556e-05/0.258, allocations: 0 / 425.7 MB, free: 12.36 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.171e-05/0.258, allocations: 4 kB / 425.7 MB, free: 12.36 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.765e-05/0.2581, allocations: 11.98 kB / 425.7 MB, free: 12.34 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.329e-05/0.2581, allocations: 27.81 kB / 425.7 MB, free: 12.32 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001187/0.2582, allocations: 63.33 kB / 425.8 MB, free: 12.26 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.477e-06/0.2583, allocations: 0 / 425.8 MB, free: 12.26 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.764e-06/0.2583, allocations: 0 / 425.8 MB, free: 12.26 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.679e-06/0.2583, allocations: 0 / 425.8 MB, free: 12.26 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.0005077/0.2588, allocations: 303.1 kB / 426.1 MB, free: 11.93 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.765e-05/0.2588, allocations: 8.031 kB / 426.1 MB, free: 11.93 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.428e-05/0.2588, allocations: 4.172 kB / 426.1 MB, free: 11.92 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.268e-05/0.2589, allocations: 34.75 kB / 426.1 MB, free: 11.88 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.632e-05/0.2589, allocations: 12.89 kB / 426.1 MB, free: 11.87 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002123/0.2591, allocations: 134.4 kB / 426.2 MB, free: 11.71 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.817e-06/0.2591, allocations: 12.31 kB / 426.3 MB, free: 11.7 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.29e-05/0.2591, allocations: 4.375 kB / 426.3 MB, free: 11.7 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002846/0.2594, allocations: 124.9 kB / 426.4 MB, free: 11.55 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.113e-06/0.2594, allocations: 0 / 426.4 MB, free: 11.55 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.076e-06/0.2594, allocations: 0 / 426.4 MB, free: 11.55 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.668e-06/0.2594, allocations: 3.938 kB / 426.4 MB, free: 11.55 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.928e-05/0.2595, allocations: 19.98 kB / 426.4 MB, free: 11.53 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003188/0.2598, allocations: 240.8 kB / 426.6 MB, free: 11.25 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001728/0.26, allocations: 61.2 kB / 426.7 MB, free: 11.17 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.139e-05/0.2601, allocations: 33.7 kB / 426.7 MB, free: 11.13 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.417e-05/0.2601, allocations: 0 / 426.7 MB, free: 11.13 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.404e-05/0.2601, allocations: 38.56 kB / 426.8 MB, free: 11.09 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 7.92e-07/0.2601, allocations: 0 / 426.8 MB, free: 11.09 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002506/0.2604, allocations: 77.75 kB / 426.8 MB, free: 11 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.989e-05/0.2604, allocations: 85.09 kB / 426.9 MB, free: 10.9 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001281/0.2605, allocations: 137.8 kB / 427.1 MB, free: 10.76 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.502e-05/0.2606, allocations: 25.7 kB / 427.1 MB, free: 10.73 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.318e-05/0.2606, allocations: 88.14 kB / 427.2 MB, free: 10.64 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.381e-05/0.2606, allocations: 8.078 kB / 427.2 MB, free: 10.63 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.772e-05/0.2607, allocations: 21.7 kB / 427.2 MB, free: 10.6 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001359/0.2608, allocations: 318.8 kB / 427.5 MB, free: 10.28 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.377e-05/0.2609, allocations: 11.98 kB / 427.5 MB, free: 10.27 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.453e-05/0.2609, allocations: 35.42 kB / 427.6 MB, free: 10.22 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.415e-05/0.261, allocations: 47.36 kB / 427.6 MB, free: 10.16 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.436e-06/0.261, allocations: 4 kB / 427.6 MB, free: 10.16 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001407/0.2611, allocations: 65.52 kB / 427.7 MB, free: 10.09 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.523e-05/0.2612, allocations: 10.97 kB / 427.7 MB, free: 10.08 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.928e-06/0.2612, allocations: 4.125 kB / 427.7 MB, free: 10.08 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.172e-05/0.2612, allocations: 0 / 427.7 MB, free: 10.08 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.422e-05/0.2612, allocations: 15.98 kB / 427.7 MB, free: 10.06 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.907e-06/0.2613, allocations: 4 kB / 427.7 MB, free: 10.06 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.557e-05/0.2613, allocations: 0 / 427.7 MB, free: 10.06 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.191e-05/0.2613, allocations: 8 kB / 427.7 MB, free: 10.05 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.28e-05/0.2614, allocations: 125.7 kB / 427.8 MB, free: 9.918 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.168e-05/0.2615, allocations: 49.59 kB / 427.9 MB, free: 9.863 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.313e-05/0.2615, allocations: 12.33 kB / 427.9 MB, free: 9.844 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.513e-06/0.2615, allocations: 4 kB / 427.9 MB, free: 9.84 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.947e-06/0.2615, allocations: 0 / 427.9 MB, free: 9.84 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.645e-06/0.2615, allocations: 0 / 427.9 MB, free: 9.84 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000182/0.2617, allocations: 148.6 kB / 428.1 MB, free: 9.652 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.2617, allocations: 0 / 428.1 MB, free: 9.652 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.548e-05/0.2618, allocations: 15.92 kB / 428.1 MB, free: 9.637 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.563e-06/0.2618, allocations: 0 / 428.1 MB, free: 9.637 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.817e-06/0.2618, allocations: 4 kB / 428.1 MB, free: 9.633 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.146e-06/0.2618, allocations: 4 kB / 428.1 MB, free: 9.629 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.2618, allocations: 0 / 428.1 MB, free: 9.629 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001899/0.262, allocations: 176.2 kB / 428.2 MB, free: 9.438 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.66e-05/0.262, allocations: 15.94 kB / 428.3 MB, free: 9.422 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.247e-05/0.262, allocations: 0 / 428.3 MB, free: 9.422 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.457e-05/0.2621, allocations: 4 kB / 428.3 MB, free: 9.418 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.373e-05/0.2621, allocations: 0 / 428.3 MB, free: 9.418 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.071e-06/0.2621, allocations: 4 kB / 428.3 MB, free: 9.414 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.402e-05/0.2622, allocations: 111.2 kB / 428.4 MB, free: 9.305 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2622, allocations: 0 / 428.4 MB, free: 9.305 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002149/0.2624, allocations: 4 kB / 428.4 MB, free: 9.301 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.0004793/0.2629, allocations: 0.7088 MB / 429.1 MB, free: 8.566 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001247/0.263, allocations: 27.97 kB / 429.1 MB, free: 8.539 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.263, allocations: 0 / 429.1 MB, free: 8.539 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.927e-05/0.263, allocations: 15.94 kB / 429.1 MB, free: 8.523 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002912/0.2633, allocations: 19.95 kB / 429.2 MB, free: 8.504 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001374/0.2647, allocations: 1.359 MB / 430.5 MB, free: 7.043 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003436/0.2651, allocations: 0.6923 MB / 431.2 MB, free: 6.324 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.506e-05/0.2651, allocations: 12.23 kB / 431.2 MB, free: 6.312 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.167e-05/0.2651, allocations: 15.44 kB / 431.2 MB, free: 6.297 MB / 334.1 MB Notification: Performance of SimCode: time 3.01e-07/0.2651, allocations: 0 / 431.2 MB, free: 6.297 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02085/0.286, allocations: 1.704 MB / 432.9 MB, free: 4.738 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.48/10.77, allocations: 7.922 kB / 432.9 MB, free: 4.73 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.183303975965828]