Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.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.001225/0.001225, allocations: 119.1 kB / 20.45 MB, free: 1.176 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.001434/0.001434, allocations: 204.5 kB / 23.72 MB, free: 4.391 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.494/1.494, allocations: 230.5 MB / 257.4 MB, free: 7.746 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.TimeBasedSine,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_TimeBasedSine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_TimeBasedSine",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001953/0.001953, allocations: 59.89 kB / 377.7 MB, free: 2.801 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3282/0.3301, allocations: 53.41 MB / 431.1 MB, free: 6.438 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine): time 0.003118/0.3332, allocations: 1.51 MB / 432.7 MB, free: 4.926 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009138/0.3342, allocations: 446.9 kB / 433.1 MB, free: 4.484 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.161e-05/0.3342, allocations: 0 / 433.1 MB, free: 4.484 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.893e-05/0.3343, allocations: 7.922 kB / 433.1 MB, free: 4.477 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.293e-05/0.3343, allocations: 11.88 kB / 433.1 MB, free: 4.465 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003046/0.3346, allocations: 27.91 kB / 433.1 MB, free: 4.438 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001038/0.3347, allocations: 31.92 kB / 433.2 MB, free: 4.406 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001067/0.3348, allocations: 19.97 kB / 433.2 MB, free: 4.387 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001329/0.335, allocations: 23.86 kB / 433.2 MB, free: 4.363 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.284e-05/0.335, allocations: 15.88 kB / 433.2 MB, free: 4.348 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.32e-05/0.335, allocations: 4 kB / 433.2 MB, free: 4.344 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.412e-05/0.3351, allocations: 8 kB / 433.2 MB, free: 4.336 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.9e-05/0.3351, allocations: 7.984 kB / 433.2 MB, free: 4.328 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.746e-05/0.3351, allocations: 15.92 kB / 433.3 MB, free: 4.312 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001351/0.3353, allocations: 45.45 kB / 433.3 MB, free: 4.27 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.3353, allocations: 0 / 433.3 MB, free: 4.27 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.3353, allocations: 0 / 433.3 MB, free: 4.27 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.482e-06/0.3353, allocations: 0 / 433.3 MB, free: 4.27 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004844/0.3358, allocations: 278.2 kB / 433.6 MB, free: 3.969 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.269e-05/0.3358, allocations: 19.92 kB / 433.6 MB, free: 3.949 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.094e-05/0.3359, allocations: 34.75 kB / 433.6 MB, free: 3.906 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001572/0.336, allocations: 12.92 kB / 433.6 MB, free: 3.895 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002536/0.3363, allocations: 130.4 kB / 433.8 MB, free: 3.742 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.056e-05/0.3363, allocations: 384 / 433.8 MB, free: 3.742 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.041e-05/0.3363, allocations: 384 / 433.8 MB, free: 3.742 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003573/0.3367, allocations: 119.4 kB / 433.9 MB, free: 3.613 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.668e-06/0.3367, allocations: 0 / 433.9 MB, free: 3.613 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.198e-06/0.3367, allocations: 0 / 433.9 MB, free: 3.613 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.819e-06/0.3367, allocations: 0 / 433.9 MB, free: 3.613 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.314e-05/0.3368, allocations: 23.92 kB / 433.9 MB, free: 3.59 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001614/0.3369, allocations: 136.7 kB / 434 MB, free: 3.414 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001561/0.3371, allocations: 50.55 kB / 434.1 MB, free: 3.355 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.904e-05/0.3372, allocations: 24.92 kB / 434.1 MB, free: 3.328 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.985e-05/0.3372, allocations: 4 kB / 434.1 MB, free: 3.324 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.331e-05/0.3372, allocations: 38.5 kB / 434.2 MB, free: 3.277 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 1.052e-06/0.3372, allocations: 0 / 434.2 MB, free: 3.277 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002491/0.3375, allocations: 73.61 kB / 434.2 MB, free: 3.199 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.232e-05/0.3375, allocations: 55.41 kB / 434.3 MB, free: 3.133 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001021/0.3376, allocations: 109.8 kB / 434.4 MB, free: 3.016 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.307e-05/0.3376, allocations: 33.64 kB / 434.4 MB, free: 2.977 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.76e-05/0.3377, allocations: 84.12 kB / 434.5 MB, free: 2.891 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.32e-06/0.3377, allocations: 0 / 434.5 MB, free: 2.891 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.675e-05/0.3377, allocations: 17.72 kB / 434.5 MB, free: 2.867 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001464/0.3379, allocations: 322.8 kB / 434.8 MB, free: 2.543 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.507e-05/0.3379, allocations: 3.984 kB / 434.8 MB, free: 2.539 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.649e-05/0.3379, allocations: 27.44 kB / 434.9 MB, free: 2.5 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.665e-05/0.338, allocations: 35.38 kB / 434.9 MB, free: 2.453 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.338, allocations: 384 / 434.9 MB, free: 2.453 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 9.603e-05/0.3381, allocations: 69.8 kB / 435 MB, free: 2.379 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.655e-05/0.3381, allocations: 8 kB / 435 MB, free: 2.371 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.109e-06/0.3381, allocations: 0 / 435 MB, free: 2.371 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.652e-05/0.3381, allocations: 3.938 kB / 435 MB, free: 2.367 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.953e-05/0.3382, allocations: 8 kB / 435 MB, free: 2.359 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.803e-06/0.3382, allocations: 0 / 435 MB, free: 2.359 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.407e-05/0.3382, allocations: 8 kB / 435 MB, free: 2.352 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.452e-06/0.3382, allocations: 3.984 kB / 435 MB, free: 2.348 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.879e-05/0.3383, allocations: 117.8 kB / 435.1 MB, free: 2.223 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001264/0.3385, allocations: 65.62 kB / 435.2 MB, free: 2.152 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.547e-05/0.3385, allocations: 12 kB / 435.2 MB, free: 2.133 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.448e-06/0.3385, allocations: 3.984 kB / 435.2 MB, free: 2.129 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.752e-06/0.3385, allocations: 4 kB / 435.2 MB, free: 2.125 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.775e-06/0.3385, allocations: 0 / 435.2 MB, free: 2.125 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001157/0.3386, allocations: 132.7 kB / 435.3 MB, free: 1.953 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.3386, allocations: 0 / 435.3 MB, free: 1.953 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.052e-05/0.3387, allocations: 11.94 kB / 435.3 MB, free: 1.941 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-06/0.3387, allocations: 0 / 435.3 MB, free: 1.941 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.073e-06/0.3387, allocations: 0 / 435.3 MB, free: 1.941 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.3387, allocations: 0 / 435.3 MB, free: 1.941 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/0.3387, allocations: 7.984 kB / 435.4 MB, free: 1.934 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001556/0.3389, allocations: 85.06 kB / 435.4 MB, free: 1.832 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.203e-05/0.3389, allocations: 19.88 kB / 435.5 MB, free: 1.812 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.291e-05/0.3389, allocations: 0 / 435.5 MB, free: 1.812 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.963e-05/0.3389, allocations: 0 / 435.5 MB, free: 1.812 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.785e-06/0.3389, allocations: 0 / 435.5 MB, free: 1.812 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.262e-06/0.3389, allocations: 4 kB / 435.5 MB, free: 1.809 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.592e-05/0.339, allocations: 95.2 kB / 435.6 MB, free: 1.715 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.339, allocations: 0 / 435.6 MB, free: 1.715 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001816/0.3392, allocations: 4 kB / 435.6 MB, free: 1.711 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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.0004773/0.3397, allocations: 0.6232 MB / 436.2 MB, free: 1.062 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001211/0.3398, allocations: 27.92 kB / 436.2 MB, free: 1.035 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.3398, allocations: 0 / 436.2 MB, free: 1.035 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.2e-07/0.3398, allocations: 0 / 436.2 MB, free: 1.035 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002257/0.34, allocations: 24.2 kB / 436.2 MB, free: 1.012 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001063/0.3411, allocations: 1.191 MB / 437.4 MB, free: 15.72 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.937e-05/0.3411, allocations: 67.34 kB / 437.5 MB, free: 15.64 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.415e-05/0.3411, allocations: 0 / 437.5 MB, free: 15.64 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.142e-05/0.3412, allocations: 11.44 kB / 437.5 MB, free: 15.62 MB / 350.1 MB Notification: Performance of SimCode: time 2.9e-07/0.3412, allocations: 0 / 437.5 MB, free: 15.62 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02908/0.3703, allocations: 1.844 MB / 439.3 MB, free: 13.89 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.65/11.02, allocations: 0 / 439.3 MB, free: 13.89 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_TimeBasedSine_fmu --startTime=0 --stopTime=1 --stepSize=0.000199561 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_TimeBasedSine.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/TimeBasedSine/TimeBasedSine.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.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: 13.557550309225917]