Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.Blocks.FirstOrderHold,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.FirstOrderHold,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001533/0.001533, allocations: 122.1 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001868/0.001868, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.431/1.431, allocations: 227.4 MB / 247 MB, free: 10.47 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2133/0.2133, allocations: 46.12 MB / 344.4 MB, free: 11.47 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002138/0.002138, allocations: 75.88 kB / 480.9 MB, free: 4.535 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3242/0.3263, allocations: 62.45 MB / 0.5306 GB, free: 13.34 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.002637/0.329, allocations: 1.547 MB / 0.5321 GB, free: 12.12 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009546/0.33, allocations: 0.5602 MB / 0.5327 GB, free: 11.68 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.608e-05/0.3301, allocations: 1 kB / 0.5327 GB, free: 11.68 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 2.868e-05/0.3301, allocations: 3.938 kB / 0.5327 GB, free: 11.68 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 8.345e-05/0.3302, allocations: 18.88 kB / 0.5327 GB, free: 11.66 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000229/0.3304, allocations: 55.48 kB / 0.5327 GB, free: 11.61 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001458/0.3306, allocations: 92.09 kB / 0.5328 GB, free: 11.56 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.293e-05/0.3307, allocations: 10.78 kB / 0.5328 GB, free: 11.55 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001409/0.3308, allocations: 50.05 kB / 0.5329 GB, free: 11.52 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.251e-05/0.3309, allocations: 39.86 kB / 0.5329 GB, free: 11.5 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.923e-05/0.3309, allocations: 7.094 kB / 0.5329 GB, free: 11.5 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.411e-05/0.331, allocations: 13.78 kB / 0.533 GB, free: 11.49 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.031e-05/0.331, allocations: 24.3 kB / 0.533 GB, free: 11.47 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.47e-05/0.3311, allocations: 41.81 kB / 0.533 GB, free: 11.44 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001504/0.3313, allocations: 80.52 kB / 0.5331 GB, free: 11.39 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.3313, allocations: 0 / 0.5331 GB, free: 11.39 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.3313, allocations: 0 / 0.5331 GB, free: 11.39 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.479e-06/0.3313, allocations: 1.438 kB / 0.5331 GB, free: 11.39 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0006886/0.332, allocations: 407.9 kB / 0.5335 GB, free: 10.98 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.506e-05/0.332, allocations: 9.688 kB / 0.5335 GB, free: 10.98 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.141e-05/0.3321, allocations: 45.17 kB / 0.5335 GB, free: 10.93 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001328/0.3322, allocations: 19.34 kB / 0.5336 GB, free: 10.92 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002322/0.3324, allocations: 184 kB / 0.5337 GB, free: 10.71 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.526e-05/0.3325, allocations: 4.312 kB / 0.5337 GB, free: 10.71 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.292e-05/0.3325, allocations: 18.11 kB / 0.5337 GB, free: 10.7 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002065/0.3327, allocations: 92.42 kB / 0.5338 GB, free: 10.63 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.646e-06/0.3327, allocations: 0 / 0.5338 GB, free: 10.63 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.18e-05/0.3327, allocations: 2.156 kB / 0.5338 GB, free: 10.63 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.809e-06/0.3328, allocations: 1.906 kB / 0.5338 GB, free: 10.63 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001381/0.3329, allocations: 52.03 kB / 0.5339 GB, free: 10.61 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005333/0.3334, allocations: 337.5 kB / 0.5342 GB, free: 10.26 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002102/0.3337, allocations: 94.09 kB / 0.5343 GB, free: 10.2 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.912e-05/0.3338, allocations: 42.78 kB / 0.5343 GB, free: 10.18 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.806e-05/0.3338, allocations: 5.375 kB / 0.5343 GB, free: 10.18 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000192/0.334, allocations: 104.2 kB / 0.5344 GB, free: 10.09 MB / 398.1 MB Notification: Performance of pre-optimization done (n=14): time 1.562e-06/0.334, allocations: 0 / 0.5344 GB, free: 10.09 MB / 398.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004682/0.3345, allocations: 196.7 kB / 0.5346 GB, free: 9.988 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.975e-05/0.3345, allocations: 55.53 kB / 0.5347 GB, free: 9.926 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001104/0.3347, allocations: 123.6 kB / 0.5348 GB, free: 9.809 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.697e-05/0.3347, allocations: 32.45 kB / 0.5348 GB, free: 9.773 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.14e-05/0.3348, allocations: 95.12 kB / 0.5349 GB, free: 9.676 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.136e-05/0.3348, allocations: 37.22 kB / 0.535 GB, free: 9.645 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.922e-05/0.3349, allocations: 38.08 kB / 0.535 GB, free: 9.613 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001572/0.335, allocations: 325.5 kB / 0.5353 GB, free: 9.289 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001001/0.3351, allocations: 41.97 kB / 0.5353 GB, free: 9.27 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001259/0.3353, allocations: 79.7 kB / 0.5354 GB, free: 9.203 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002221/0.3355, allocations: 116.6 kB / 0.5355 GB, free: 9.125 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.3355, allocations: 5.375 kB / 0.5355 GB, free: 9.121 MB / 398.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002868/0.3358, allocations: 156 kB / 0.5357 GB, free: 9.035 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.794e-05/0.3358, allocations: 7.844 kB / 0.5357 GB, free: 9.035 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.711e-06/0.3358, allocations: 5.312 kB / 0.5357 GB, free: 9.031 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.627e-05/0.3359, allocations: 2.75 kB / 0.5357 GB, free: 9.031 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001157/0.336, allocations: 26.61 kB / 0.5357 GB, free: 9.02 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.783e-06/0.336, allocations: 3.219 kB / 0.5357 GB, free: 9.02 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.124e-05/0.3361, allocations: 20.58 kB / 0.5358 GB, free: 9.004 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.39e-05/0.3361, allocations: 8.172 kB / 0.5358 GB, free: 9 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 18 (firstOrderHold.firstTrigger,$PRE.firstOrderHold.firstTrigger,zeroOrderHold.firstTrigger,$PRE.zeroOrderHold.firstTrigger,zeroOrderHold.sampleTrigger,$whenCondition1,firstOrderHold.sampleTrigger,$whenCondition2,firstOrderHold.c,$PRE.firstOrderHold.c,firstOrderHold.pre_uSample,$PRE.firstOrderHold.pre_uSample,firstOrderHold.uSample,$PRE.firstOrderHold.uSample,firstOrderHold.tSample,$PRE.firstOrderHold.tSample,zeroOrderHold.ySample,$PRE.zeroOrderHold.ySample) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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.0001261/0.3362, allocations: 136.5 kB / 0.5359 GB, free: 8.867 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.938e-05/0.3362, allocations: 8.516 kB / 0.5359 GB, free: 8.863 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.926e-05/0.3363, allocations: 9.656 kB / 0.5359 GB, free: 8.855 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.883e-06/0.3363, allocations: 6.375 kB / 0.5359 GB, free: 8.852 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.299e-06/0.3363, allocations: 0 / 0.5359 GB, free: 8.852 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.3363, allocations: 0 / 0.5359 GB, free: 8.852 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005968/0.3369, allocations: 456.7 kB / 0.5364 GB, free: 8.445 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.027e-06/0.3369, allocations: 7.938 kB / 0.5364 GB, free: 8.438 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.991e-05/0.337, allocations: 10.48 kB / 0.5364 GB, free: 8.434 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.574e-06/0.337, allocations: 1.062 kB / 0.5364 GB, free: 8.434 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.208e-05/0.337, allocations: 1.25 kB / 0.5364 GB, free: 8.434 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.983e-06/0.337, allocations: 1.094 kB / 0.5364 GB, free: 8.434 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.337, allocations: 0 / 0.5364 GB, free: 8.434 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003471/0.3374, allocations: 263.2 kB / 0.5366 GB, free: 8.238 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.838e-05/0.3374, allocations: 88.28 kB / 0.5367 GB, free: 8.137 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.53e-05/0.3375, allocations: 5.156 kB / 0.5367 GB, free: 8.133 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001183/0.3376, allocations: 9.609 kB / 0.5367 GB, free: 8.129 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.475e-05/0.3376, allocations: 12.58 kB / 0.5367 GB, free: 8.121 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.691e-05/0.3377, allocations: 3.375 kB / 0.5367 GB, free: 8.121 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.723e-05/0.3377, allocations: 92.36 kB / 0.5368 GB, free: 8.039 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3377, allocations: 1.094 kB / 0.5368 GB, free: 8.039 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002382/0.338, allocations: 25.34 kB / 0.5368 GB, free: 8.031 MB / 398.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: 11 (firstOrderHold.sampleTrigger,zeroOrderHold.sampleTrigger,$whenCondition2,$whenCondition1,zeroOrderHold.firstTrigger,zeroOrderHold.ySample,firstOrderHold.firstTrigger,firstOrderHold.tSample,firstOrderHold.uSample,firstOrderHold.pre_uSample,firstOrderHold.c) * Number of discrete states: 3 (zeroOrderHold.ySample,firstOrderHold.uSample,firstOrderHold.c) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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.00067/0.3387, allocations: 0.7908 MB / 0.5376 GB, free: 7.312 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000275/0.3389, allocations: 114.2 kB / 0.5377 GB, free: 7.266 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.671e-06/0.339, allocations: 0 / 0.5377 GB, free: 7.266 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000125/0.3391, allocations: 60.19 kB / 0.5378 GB, free: 7.238 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002595/0.3394, allocations: 16.8 kB / 0.5378 GB, free: 7.227 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001871/0.3412, allocations: 1.652 MB / 0.5394 GB, free: 5.746 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003355/0.3416, allocations: 0.6973 MB / 0.5401 GB, free: 5.039 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 4.542e-05/0.3416, allocations: 15.25 kB / 0.5401 GB, free: 5.031 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.965e-05/0.3417, allocations: 33.97 kB / 0.5401 GB, free: 5.004 MB / 398.1 MB Notification: Performance of SimCode: time 2.6e-07/0.3417, allocations: 0 / 0.5401 GB, free: 5.004 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0207/0.3624, allocations: 2.222 MB / 0.5423 GB, free: 3.812 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.757/8.12, allocations: 12.28 kB / 0.5423 GB, free: 3.805 MB / 398.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_FirstOrderHold_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_FirstOrderHold.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/FirstOrderHold/FirstOrderHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches