Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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.Sample3,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_Sample3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.Sample3,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_Sample3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00133/0.00133, allocations: 108.5 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001548/0.001548, allocations: 209.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.378/1.378, allocations: 227.4 MB / 246.3 MB, free: 9.035 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001154/0.001154, allocations: 62.61 kB / 306.4 MB, free: 0.707 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1112/0.1124, allocations: 50.53 MB / 356.9 MB, free: 14.18 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Sample3): time 0.003951/0.1164, allocations: 1.754 MB / 358.6 MB, free: 12.41 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005405/0.117, allocations: 159.5 kB / 358.8 MB, free: 12.25 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001217/0.1171, allocations: 11.94 kB / 358.8 MB, free: 12.24 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 6.006e-05/0.1172, allocations: 3.984 kB / 358.8 MB, free: 12.23 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001339/0.1173, allocations: 3.938 kB / 358.8 MB, free: 12.23 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002959/0.1176, allocations: 39.91 kB / 358.9 MB, free: 12.19 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001206/0.1178, allocations: 55.84 kB / 358.9 MB, free: 12.14 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001571/0.1179, allocations: 35.95 kB / 358.9 MB, free: 12.1 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.555e-05/0.118, allocations: 15.94 kB / 359 MB, free: 12.09 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.849e-05/0.1181, allocations: 27.84 kB / 359 MB, free: 12.06 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.378e-05/0.1181, allocations: 4 kB / 359 MB, free: 12.05 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.618e-05/0.1181, allocations: 4 kB / 359 MB, free: 12.05 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.395e-05/0.1182, allocations: 11.94 kB / 359 MB, free: 12.04 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.281e-05/0.1183, allocations: 35.73 kB / 359 MB, free: 12 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001276/0.1184, allocations: 67.66 kB / 359.1 MB, free: 11.94 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.517e-06/0.1184, allocations: 0 / 359.1 MB, free: 11.94 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.92e-07/0.1184, allocations: 0 / 359.1 MB, free: 11.94 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.528e-06/0.1184, allocations: 4 kB / 359.1 MB, free: 11.93 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0006109/0.119, allocations: 391.4 kB / 359.5 MB, free: 11.5 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.956e-05/0.1191, allocations: 8.031 kB / 359.5 MB, free: 11.49 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.873e-05/0.1192, allocations: 38.75 kB / 359.5 MB, free: 11.45 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.168e-05/0.1192, allocations: 8.844 kB / 359.5 MB, free: 11.44 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002295/0.1194, allocations: 200.1 kB / 359.7 MB, free: 11.2 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.073e-05/0.1195, allocations: 384 / 359.7 MB, free: 11.2 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.403e-05/0.1195, allocations: 8.375 kB / 359.8 MB, free: 11.2 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004653/0.12, allocations: 170.3 kB / 359.9 MB, free: 11.01 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.582e-05/0.12, allocations: 3.938 kB / 359.9 MB, free: 11 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.266e-05/0.12, allocations: 0 / 359.9 MB, free: 11 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.192e-06/0.12, allocations: 0 / 359.9 MB, free: 11 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001473/0.1202, allocations: 39.92 kB / 360 MB, free: 10.96 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000512/0.1207, allocations: 373.7 kB / 360.3 MB, free: 10.54 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003213/0.121, allocations: 123.8 kB / 360.4 MB, free: 10.39 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000134/0.1212, allocations: 54.62 kB / 360.5 MB, free: 10.33 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.954e-05/0.1212, allocations: 4.156 kB / 360.5 MB, free: 10.33 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.169e-05/0.1213, allocations: 42.55 kB / 360.5 MB, free: 10.28 MB / 302.1 MB Notification: Performance of pre-optimization done (n=10): time 1.593e-06/0.1213, allocations: 0 / 360.5 MB, free: 10.28 MB / 302.1 MB Notification: Performance of matching and sorting (n=10): time 0.0004542/0.1217, allocations: 133.6 kB / 360.7 MB, free: 10.14 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.762e-05/0.1218, allocations: 106.8 kB / 360.8 MB, free: 10.01 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001471/0.122, allocations: 140.5 kB / 360.9 MB, free: 9.867 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.251e-05/0.122, allocations: 29.7 kB / 360.9 MB, free: 9.832 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.367e-05/0.1221, allocations: 88.39 kB / 361 MB, free: 9.742 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.056e-05/0.1221, allocations: 7.906 kB / 361 MB, free: 9.734 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.866e-05/0.1222, allocations: 29.7 kB / 361.1 MB, free: 9.699 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001436/0.1224, allocations: 322.8 kB / 361.4 MB, free: 9.375 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.586e-05/0.1224, allocations: 11.98 kB / 361.4 MB, free: 9.363 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001155/0.1226, allocations: 75.66 kB / 361.5 MB, free: 9.262 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001797/0.1227, allocations: 95.58 kB / 361.6 MB, free: 9.141 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.756e-06/0.1228, allocations: 0 / 361.6 MB, free: 9.141 MB / 302.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002904/0.1231, allocations: 109.7 kB / 361.7 MB, free: 9.027 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.793e-05/0.1231, allocations: 8 kB / 361.7 MB, free: 9.02 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.155e-05/0.1231, allocations: 4 kB / 361.7 MB, free: 9.016 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.516e-05/0.1231, allocations: 3.938 kB / 361.7 MB, free: 9.012 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001025/0.1232, allocations: 19.98 kB / 361.7 MB, free: 8.992 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.025e-05/0.1233, allocations: 4 kB / 361.7 MB, free: 8.988 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.366e-05/0.1234, allocations: 7.906 kB / 361.7 MB, free: 8.98 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.143e-05/0.1234, allocations: 7.938 kB / 361.7 MB, free: 8.973 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * 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 (10): * Single equations (assignments): 10 * 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.0001328/0.1235, allocations: 138.7 kB / 361.9 MB, free: 8.828 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001903/0.1237, allocations: 73.59 kB / 361.9 MB, free: 8.75 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.133e-05/0.1238, allocations: 12.72 kB / 361.9 MB, free: 8.738 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.199e-06/0.1238, allocations: 4 kB / 361.9 MB, free: 8.734 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.1238, allocations: 0 / 361.9 MB, free: 8.734 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.038e-06/0.1238, allocations: 0 / 361.9 MB, free: 8.734 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003772/0.1242, allocations: 189.6 kB / 362.1 MB, free: 8.5 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.29e-06/0.1242, allocations: 0 / 362.1 MB, free: 8.5 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001076/0.1243, allocations: 23.92 kB / 362.2 MB, free: 8.477 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.797e-06/0.1243, allocations: 0 / 362.2 MB, free: 8.477 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.003e-05/0.1243, allocations: 0 / 362.2 MB, free: 8.477 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.615e-06/0.1244, allocations: 4 kB / 362.2 MB, free: 8.473 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.1244, allocations: 4 kB / 362.2 MB, free: 8.469 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000457/0.1248, allocations: 320.3 kB / 362.5 MB, free: 8.133 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.567e-05/0.1249, allocations: 96.94 kB / 362.6 MB, free: 8.02 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.203e-05/0.125, allocations: 4 kB / 362.6 MB, free: 8.016 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001568/0.1251, allocations: 8 kB / 362.6 MB, free: 8.008 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.823e-05/0.1252, allocations: 11.98 kB / 362.6 MB, free: 7.996 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.774e-06/0.1252, allocations: 0 / 362.6 MB, free: 7.996 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.889e-05/0.1253, allocations: 103.3 kB / 362.7 MB, free: 7.895 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.41e-07/0.1253, allocations: 0 / 362.7 MB, free: 7.895 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005004/0.1259, allocations: 15.94 kB / 362.7 MB, free: 7.879 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (10): * Single equations (assignments): 10 * 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.0008016/0.1267, allocations: 0.8492 MB / 363.6 MB, free: 6.996 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002827/0.127, allocations: 64.16 kB / 363.6 MB, free: 6.934 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.127, allocations: 0 / 363.6 MB, free: 6.934 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 6.165e-05/0.1271, allocations: 15.98 kB / 363.6 MB, free: 6.918 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007099/0.1278, allocations: 43.89 kB / 363.7 MB, free: 6.875 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001569/0.1294, allocations: 1.598 MB / 365.3 MB, free: 5.141 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002814/0.1297, allocations: 0.7004 MB / 366 MB, free: 4.414 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.666e-05/0.1297, allocations: 4.672 kB / 366 MB, free: 4.402 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.767e-05/0.1298, allocations: 23.42 kB / 366 MB, free: 4.383 MB / 302.1 MB Notification: Performance of SimCode: time 4.11e-07/0.1298, allocations: 4 kB / 366 MB, free: 4.379 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0118/0.1416, allocations: 1.659 MB / 367.7 MB, free: 2.828 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001854/0.1418, allocations: 207.4 kB / 367.9 MB, free: 2.57 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.778/1.92, allocations: 0 / 367.9 MB, free: 2.57 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_Sample3_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_Sample3.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/Sample3/Sample3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches