Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001766/0.001766, allocations: 109.1 kB / 21.22 MB, free: 0.7539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001907/0.001907, allocations: 216.5 kB / 24.53 MB, free: 4.012 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.604/1.604, allocations: 230.5 MB / 258.2 MB, free: 8.023 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.Sample1,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_Sample1",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.Sample1,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_Sample1",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001965/0.001965, allocations: 63.84 kB / 378.6 MB, free: 3.016 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3497/0.3517, allocations: 53.4 MB / 432 MB, free: 6.688 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Sample1): time 0.003546/0.3552, allocations: 1.596 MB / 433.6 MB, free: 5.086 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001142/0.3564, allocations: 0.5453 MB / 434.1 MB, free: 4.535 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.535e-05/0.3564, allocations: 7.938 kB / 434.1 MB, free: 4.527 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.84e-05/0.3565, allocations: 7.875 kB / 434.1 MB, free: 4.52 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001548/0.3567, allocations: 11.92 kB / 434.1 MB, free: 4.508 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003476/0.357, allocations: 55.33 kB / 434.2 MB, free: 4.457 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001265/0.3571, allocations: 43.8 kB / 434.2 MB, free: 4.414 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001185/0.3572, allocations: 11.98 kB / 434.3 MB, free: 4.402 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001442/0.3574, allocations: 35.84 kB / 434.3 MB, free: 4.367 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.968e-05/0.3575, allocations: 23.86 kB / 434.3 MB, free: 4.344 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.681e-05/0.3575, allocations: 4 kB / 434.3 MB, free: 4.34 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.771e-05/0.3575, allocations: 8 kB / 434.3 MB, free: 4.332 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.246e-05/0.3576, allocations: 19.92 kB / 434.3 MB, free: 4.312 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.64e-05/0.3577, allocations: 23.81 kB / 434.4 MB, free: 4.289 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000198/0.3579, allocations: 59.11 kB / 434.4 MB, free: 4.234 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.923e-06/0.3579, allocations: 0 / 434.4 MB, free: 4.234 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.615e-06/0.3579, allocations: 0 / 434.4 MB, free: 4.234 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.624e-06/0.3579, allocations: 0 / 434.4 MB, free: 4.234 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.000627/0.3585, allocations: 303 kB / 434.7 MB, free: 3.91 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.2e-05/0.3585, allocations: 12.03 kB / 434.7 MB, free: 3.898 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.123e-05/0.3586, allocations: 4.188 kB / 434.7 MB, free: 3.895 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.736e-05/0.3586, allocations: 38.73 kB / 434.8 MB, free: 3.848 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002023/0.3588, allocations: 16.84 kB / 434.8 MB, free: 3.832 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003556/0.3592, allocations: 141.1 kB / 434.9 MB, free: 3.672 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.273e-05/0.3592, allocations: 4.375 kB / 434.9 MB, free: 3.668 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.336e-05/0.3592, allocations: 12.38 kB / 434.9 MB, free: 3.656 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003607/0.3596, allocations: 117 kB / 435.1 MB, free: 3.523 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.048e-05/0.3596, allocations: 0 / 435.1 MB, free: 3.523 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.184e-05/0.3596, allocations: 0 / 435.1 MB, free: 3.523 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.242e-06/0.3596, allocations: 0 / 435.1 MB, free: 3.523 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.945e-05/0.3597, allocations: 31.91 kB / 435.1 MB, free: 3.492 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004448/0.3601, allocations: 240.8 kB / 435.3 MB, free: 3.211 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001935/0.3603, allocations: 53.2 kB / 435.4 MB, free: 3.141 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.533e-05/0.3604, allocations: 37.7 kB / 435.4 MB, free: 3.098 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.969e-05/0.3604, allocations: 0 / 435.4 MB, free: 3.098 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.167e-05/0.3605, allocations: 34.56 kB / 435.5 MB, free: 3.055 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 8.41e-07/0.3605, allocations: 0 / 435.5 MB, free: 3.055 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002995/0.3608, allocations: 81.55 kB / 435.5 MB, free: 2.969 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.604e-05/0.3608, allocations: 81.11 kB / 435.6 MB, free: 2.871 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001462/0.361, allocations: 150.2 kB / 435.8 MB, free: 2.711 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.085e-05/0.361, allocations: 25.7 kB / 435.8 MB, free: 2.68 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.518e-05/0.3611, allocations: 84.14 kB / 435.9 MB, free: 2.594 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.016e-05/0.3611, allocations: 11.89 kB / 435.9 MB, free: 2.582 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.72e-05/0.3611, allocations: 21.7 kB / 435.9 MB, free: 2.555 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000175/0.3613, allocations: 318.8 kB / 436.2 MB, free: 2.234 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.901e-05/0.3614, allocations: 11.92 kB / 436.2 MB, free: 2.223 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.854e-05/0.3614, allocations: 35.44 kB / 436.3 MB, free: 2.176 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001092/0.3615, allocations: 47.36 kB / 436.3 MB, free: 2.117 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.3615, allocations: 0 / 436.3 MB, free: 2.117 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001575/0.3617, allocations: 73.56 kB / 436.4 MB, free: 2.039 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.04e-05/0.3617, allocations: 6.5 kB / 436.4 MB, free: 2.035 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.761e-06/0.3617, allocations: 0 / 436.4 MB, free: 2.035 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.828e-05/0.3617, allocations: 4 kB / 436.4 MB, free: 2.031 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.123e-05/0.3618, allocations: 11.98 kB / 436.4 MB, free: 2.02 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.678e-06/0.3618, allocations: 3.984 kB / 436.4 MB, free: 2.016 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.579e-05/0.3619, allocations: 8 kB / 436.4 MB, free: 2.008 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.036e-06/0.3619, allocations: 0 / 436.4 MB, free: 2.008 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.0001201/0.362, allocations: 129.8 kB / 436.5 MB, free: 1.871 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.286e-05/0.3621, allocations: 45.66 kB / 436.6 MB, free: 1.82 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.508e-05/0.3621, allocations: 16.33 kB / 436.6 MB, free: 1.797 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.994e-06/0.3621, allocations: 0 / 436.6 MB, free: 1.797 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.825e-06/0.3621, allocations: 4 kB / 436.6 MB, free: 1.793 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.508e-06/0.3621, allocations: 0 / 436.6 MB, free: 1.793 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002047/0.3623, allocations: 140.7 kB / 436.7 MB, free: 1.613 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.3623, allocations: 4 kB / 436.7 MB, free: 1.609 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.739e-05/0.3624, allocations: 7.984 kB / 436.7 MB, free: 1.602 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.349e-06/0.3624, allocations: 8 kB / 436.8 MB, free: 1.594 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.285e-06/0.3624, allocations: 0 / 436.8 MB, free: 1.594 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.674e-06/0.3624, allocations: 0 / 436.8 MB, free: 1.594 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.3624, allocations: 0 / 436.8 MB, free: 1.594 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002131/0.3626, allocations: 172.2 kB / 436.9 MB, free: 1.406 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.603e-05/0.3627, allocations: 23.92 kB / 436.9 MB, free: 1.383 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.886e-05/0.3627, allocations: 8 kB / 437 MB, free: 1.375 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.276e-05/0.3627, allocations: 0 / 437 MB, free: 1.375 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.319e-05/0.3628, allocations: 4 kB / 437 MB, free: 1.371 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.687e-06/0.3628, allocations: 3.938 kB / 437 MB, free: 1.367 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.307e-05/0.3629, allocations: 110 kB / 437.1 MB, free: 1.262 MB / 334.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3629, allocations: 0 / 437.1 MB, free: 1.262 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002286/0.3631, allocations: 12 kB / 437.1 MB, free: 1.25 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.0006022/0.3637, allocations: 0.7053 MB / 437.8 MB, free: 0.5156 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001723/0.3639, allocations: 35.91 kB / 437.8 MB, free: 492 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.3639, allocations: 0 / 437.8 MB, free: 492 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.824e-05/0.3639, allocations: 8.188 kB / 437.8 MB, free: 484 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003762/0.3643, allocations: 27.83 kB / 437.9 MB, free: 460 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001719/0.366, allocations: 1.378 MB / 439.2 MB, free: 14.97 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003686/0.3664, allocations: 0.6924 MB / 439.9 MB, free: 14.25 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.132e-05/0.3664, allocations: 4 kB / 439.9 MB, free: 14.25 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.46e-05/0.3665, allocations: 19.42 kB / 439.9 MB, free: 14.23 MB / 350.1 MB Notification: Performance of SimCode: time 4.81e-07/0.3665, allocations: 0 / 439.9 MB, free: 14.23 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02415/0.3906, allocations: 1.71 MB / 441.7 MB, free: 12.64 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.14/11.53, allocations: 19.61 kB / 441.7 MB, free: 12.62 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_Sample1_fmu --startTime=0 --stopTime=0.2 --stepSize=3.99122e-05 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_Sample1.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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: 14.376065796997864]