Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.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.001255/0.001255, allocations: 105.1 kB / 21.21 MB, free: 0.6523 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.001405/0.001405, allocations: 214.9 kB / 24.52 MB, free: 3.941 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.4/1.4, allocations: 230.6 MB / 258.3 MB, free: 7.797 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.Clocked.Examples.Elementary.RealSignals.Sample1,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample1",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.Sample1,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample1",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001547/0.001547, allocations: 51.92 kB / 378.5 MB, free: 2.969 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2487/0.2502, allocations: 53.36 MB / 431.9 MB, free: 6.652 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Sample1): time 0.00295/0.2532, allocations: 1.588 MB / 433.5 MB, free: 5.059 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001035/0.2542, allocations: 0.4987 MB / 434 MB, free: 4.555 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.759e-05/0.2543, allocations: 4 kB / 434 MB, free: 4.551 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.393e-05/0.2543, allocations: 7.875 kB / 434 MB, free: 4.543 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001368/0.2545, allocations: 7.922 kB / 434 MB, free: 4.535 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003351/0.2548, allocations: 59.81 kB / 434 MB, free: 4.477 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001299/0.2549, allocations: 47.78 kB / 434.1 MB, free: 4.43 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001091/0.255, allocations: 10.11 kB / 434.1 MB, free: 4.422 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000145/0.2552, allocations: 27.92 kB / 434.1 MB, free: 4.395 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.927e-05/0.2553, allocations: 23.91 kB / 434.1 MB, free: 4.371 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.002e-05/0.2553, allocations: 4 kB / 434.1 MB, free: 4.367 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.433e-05/0.2553, allocations: 11.94 kB / 434.2 MB, free: 4.355 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.543e-05/0.2554, allocations: 11.98 kB / 434.2 MB, free: 4.344 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.426e-05/0.2554, allocations: 19.81 kB / 434.2 MB, free: 4.324 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001731/0.2556, allocations: 63.67 kB / 434.3 MB, free: 4.262 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.58e-06/0.2556, allocations: 0 / 434.3 MB, free: 4.262 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.2556, allocations: 0 / 434.3 MB, free: 4.262 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.472e-06/0.2556, allocations: 0 / 434.3 MB, free: 4.262 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.0005327/0.2561, allocations: 305.9 kB / 434.5 MB, free: 3.934 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.491e-05/0.2562, allocations: 15.97 kB / 434.6 MB, free: 3.918 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.342e-05/0.2562, allocations: 4.188 kB / 434.6 MB, free: 3.914 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.302e-05/0.2562, allocations: 34.75 kB / 434.6 MB, free: 3.871 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001531/0.2564, allocations: 20.88 kB / 434.6 MB, free: 3.852 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002637/0.2566, allocations: 140.9 kB / 434.8 MB, free: 3.691 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.571e-06/0.2566, allocations: 384 / 434.8 MB, free: 3.691 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.642e-05/0.2567, allocations: 4.375 kB / 434.8 MB, free: 3.688 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002853/0.2569, allocations: 125 kB / 434.9 MB, free: 3.547 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.013e-05/0.257, allocations: 4 kB / 434.9 MB, free: 3.543 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.448e-06/0.257, allocations: 3.938 kB / 434.9 MB, free: 3.539 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.057e-06/0.257, allocations: 0 / 434.9 MB, free: 3.539 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.649e-05/0.2571, allocations: 19.98 kB / 434.9 MB, free: 3.52 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003472/0.2574, allocations: 236.7 kB / 435.1 MB, free: 3.242 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001879/0.2576, allocations: 61.2 kB / 435.2 MB, free: 3.164 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.143e-05/0.2577, allocations: 37.69 kB / 435.2 MB, free: 3.121 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.779e-05/0.2577, allocations: 0 / 435.2 MB, free: 3.121 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.398e-05/0.2577, allocations: 34.56 kB / 435.3 MB, free: 3.078 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 8.71e-07/0.2577, allocations: 0 / 435.3 MB, free: 3.078 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002685/0.258, allocations: 85.55 kB / 435.4 MB, free: 2.988 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.032e-05/0.258, allocations: 81.11 kB / 435.4 MB, free: 2.891 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001356/0.2582, allocations: 134.2 kB / 435.6 MB, free: 2.746 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.583e-05/0.2582, allocations: 25.7 kB / 435.6 MB, free: 2.715 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.675e-05/0.2582, allocations: 92.12 kB / 435.7 MB, free: 2.621 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.654e-05/0.2583, allocations: 12.08 kB / 435.7 MB, free: 2.609 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.251e-05/0.2583, allocations: 13.72 kB / 435.7 MB, free: 2.59 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001459/0.2585, allocations: 326.8 kB / 436 MB, free: 2.262 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.18e-05/0.2585, allocations: 4 kB / 436 MB, free: 2.258 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.593e-05/0.2585, allocations: 35.42 kB / 436.1 MB, free: 2.211 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.507e-05/0.2586, allocations: 47.36 kB / 436.1 MB, free: 2.152 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.734e-06/0.2586, allocations: 4 kB / 436.1 MB, free: 2.148 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.000165/0.2588, allocations: 77.5 kB / 436.2 MB, free: 2.066 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.381e-05/0.2588, allocations: 4 kB / 436.2 MB, free: 2.062 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.639e-06/0.2588, allocations: 3.938 kB / 436.2 MB, free: 2.059 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.418e-05/0.2588, allocations: 4 kB / 436.2 MB, free: 2.055 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.639e-05/0.2589, allocations: 8 kB / 436.2 MB, free: 2.047 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.077e-06/0.2589, allocations: 3.984 kB / 436.2 MB, free: 2.043 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.143e-05/0.259, allocations: 4 kB / 436.2 MB, free: 2.039 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.707e-06/0.259, allocations: 4.125 kB / 436.2 MB, free: 2.035 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 0.0001033/0.2591, allocations: 122.4 kB / 436.3 MB, free: 1.906 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.043e-05/0.2592, allocations: 53.58 kB / 436.4 MB, free: 1.848 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.622e-05/0.2592, allocations: 8.344 kB / 436.4 MB, free: 1.832 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.788e-06/0.2592, allocations: 4 kB / 436.4 MB, free: 1.828 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.2592, allocations: 0 / 436.4 MB, free: 1.828 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.669e-06/0.2592, allocations: 3.984 kB / 436.4 MB, free: 1.824 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001939/0.2594, allocations: 140.7 kB / 436.6 MB, free: 1.645 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-06/0.2594, allocations: 0 / 436.6 MB, free: 1.645 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.617e-05/0.2595, allocations: 11.98 kB / 436.6 MB, free: 1.633 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.195e-06/0.2595, allocations: 4 kB / 436.6 MB, free: 1.629 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.304e-06/0.2595, allocations: 0 / 436.6 MB, free: 1.629 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.853e-06/0.2595, allocations: 0 / 436.6 MB, free: 1.629 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.133e-06/0.2595, allocations: 0 / 436.6 MB, free: 1.629 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001997/0.2597, allocations: 180.2 kB / 436.7 MB, free: 1.434 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.15e-05/0.2597, allocations: 15.94 kB / 436.8 MB, free: 1.418 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.552e-05/0.2597, allocations: 0 / 436.8 MB, free: 1.418 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.681e-05/0.2598, allocations: 8 kB / 436.8 MB, free: 1.41 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.079e-05/0.2598, allocations: 0 / 436.8 MB, free: 1.41 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.066e-05/0.2598, allocations: 8 kB / 436.8 MB, free: 1.402 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.909e-05/0.2599, allocations: 114 kB / 436.9 MB, free: 1.293 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2599, allocations: 0 / 436.9 MB, free: 1.293 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002241/0.2602, allocations: 4 kB / 436.9 MB, free: 1.289 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.0005001/0.2607, allocations: 0.7096 MB / 437.6 MB, free: 0.5508 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001413/0.2608, allocations: 32 kB / 437.6 MB, free: 0.5195 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.2608, allocations: 0 / 437.6 MB, free: 0.5195 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.781e-05/0.2608, allocations: 16.19 kB / 437.6 MB, free: 0.5039 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003296/0.2612, allocations: 20.02 kB / 437.7 MB, free: 496 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001421/0.2626, allocations: 1.376 MB / 439 MB, free: 15.01 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.683e-05/0.2627, allocations: 75.33 kB / 439.1 MB, free: 14.91 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.302e-05/0.2627, allocations: 4.062 kB / 439.1 MB, free: 14.91 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.919e-05/0.2628, allocations: 19.42 kB / 439.1 MB, free: 14.89 MB / 350.1 MB Notification: Performance of SimCode: time 7.61e-07/0.2628, allocations: 0 / 439.1 MB, free: 14.89 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02243/0.2852, allocations: 1.781 MB / 440.9 MB, free: 13.27 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.56/10.84, allocations: 8 kB / 440.9 MB, free: 13.26 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample1_fmu --startTime=0 --stopTime=0.2 --stepSize=3.99122e-05 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample1.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/Sample1/Sample1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.continuous,sine.f,sine.offset,sine.phase,sine.startTime,sine.y,time [Calling sys.exit(0), Time elapsed: 13.25679814897012]