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.001096/0.001097, allocations: 122.8 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001257/0.001257, allocations: 202 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.325/1.325, allocations: 227.4 MB / 246.9 MB, free: 10.42 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.225/0.225, allocations: 46.11 MB / 344.3 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001484/0.001484, allocations: 79.86 kB / 480.8 MB, free: 4.555 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3802/0.3816, allocations: 62.43 MB / 0.5305 GB, free: 13.41 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.003064/0.3848, allocations: 1.541 MB / 0.532 GB, free: 12.2 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001126/0.3859, allocations: 0.56 MB / 0.5326 GB, free: 11.76 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.437e-05/0.386, allocations: 0.9688 kB / 0.5326 GB, free: 11.76 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 3.083e-05/0.3861, allocations: 7.875 kB / 0.5326 GB, free: 11.75 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001049/0.3862, allocations: 17.5 kB / 0.5326 GB, free: 11.73 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002734/0.3865, allocations: 48.34 kB / 0.5326 GB, free: 11.7 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000202/0.3867, allocations: 93.33 kB / 0.5327 GB, free: 11.64 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001105/0.3868, allocations: 9.562 kB / 0.5327 GB, free: 11.64 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001823/0.387, allocations: 47.67 kB / 0.5328 GB, free: 11.61 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.561e-05/0.3871, allocations: 46.33 kB / 0.5328 GB, free: 11.57 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.007e-05/0.3871, allocations: 8.344 kB / 0.5328 GB, free: 11.57 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.03e-05/0.3872, allocations: 13.09 kB / 0.5328 GB, free: 11.57 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.79e-05/0.3872, allocations: 23.22 kB / 0.5329 GB, free: 11.55 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.426e-05/0.3873, allocations: 38.98 kB / 0.5329 GB, free: 11.52 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001613/0.3875, allocations: 86.3 kB / 0.533 GB, free: 11.46 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.3875, allocations: 0 / 0.533 GB, free: 11.46 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.3875, allocations: 1.125 kB / 0.533 GB, free: 11.46 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.848e-06/0.3875, allocations: 0 / 0.533 GB, free: 11.46 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.0006941/0.3882, allocations: 412.4 kB / 0.5334 GB, free: 11.05 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.035e-05/0.3882, allocations: 10.28 kB / 0.5334 GB, free: 11.05 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.019e-05/0.3883, allocations: 40.2 kB / 0.5334 GB, free: 11 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001465/0.3884, allocations: 19.77 kB / 0.5334 GB, free: 11 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002703/0.3887, allocations: 180.4 kB / 0.5336 GB, free: 10.79 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.152e-05/0.3888, allocations: 7.953 kB / 0.5336 GB, free: 10.79 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.181e-05/0.3888, allocations: 18.28 kB / 0.5336 GB, free: 10.77 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000208/0.389, allocations: 88.45 kB / 0.5337 GB, free: 10.71 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.699e-06/0.389, allocations: 1.406 kB / 0.5337 GB, free: 10.71 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.503e-05/0.389, allocations: 4 kB / 0.5337 GB, free: 10.7 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.392e-06/0.3891, allocations: 2.562 kB / 0.5337 GB, free: 10.7 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001424/0.3892, allocations: 44.47 kB / 0.5338 GB, free: 10.68 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00054/0.3898, allocations: 333.6 kB / 0.5341 GB, free: 10.34 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002302/0.39, allocations: 98.58 kB / 0.5342 GB, free: 10.28 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001005/0.3901, allocations: 45.69 kB / 0.5342 GB, free: 10.25 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.473e-05/0.3901, allocations: 6.547 kB / 0.5342 GB, free: 10.25 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001937/0.3903, allocations: 96.08 kB / 0.5343 GB, free: 10.17 MB / 398.1 MB Notification: Performance of pre-optimization done (n=14): time 2.023e-06/0.3904, allocations: 4 kB / 0.5343 GB, free: 10.17 MB / 398.1 MB Notification: Performance of matching and sorting (n=14): time 0.000463/0.3908, allocations: 192.5 kB / 0.5345 GB, free: 10.07 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.416e-05/0.3909, allocations: 59.53 kB / 0.5346 GB, free: 10 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.971e-05/0.391, allocations: 123.5 kB / 0.5347 GB, free: 9.887 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.353e-05/0.391, allocations: 32.45 kB / 0.5347 GB, free: 9.852 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.567e-05/0.3911, allocations: 91.16 kB / 0.5348 GB, free: 9.758 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.703e-05/0.3911, allocations: 37.05 kB / 0.5348 GB, free: 9.727 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.791e-05/0.3912, allocations: 42.08 kB / 0.5349 GB, free: 9.691 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001066/0.3913, allocations: 325.5 kB / 0.5352 GB, free: 9.367 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001024/0.3914, allocations: 37.97 kB / 0.5352 GB, free: 9.352 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001138/0.3915, allocations: 74.39 kB / 0.5353 GB, free: 9.289 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002137/0.3918, allocations: 122.3 kB / 0.5354 GB, free: 9.207 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.3918, allocations: 0 / 0.5354 GB, free: 9.207 MB / 398.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002969/0.3921, allocations: 161.3 kB / 0.5356 GB, free: 9.117 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.98e-05/0.3921, allocations: 9.625 kB / 0.5356 GB, free: 9.113 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.033e-06/0.3921, allocations: 5.312 kB / 0.5356 GB, free: 9.109 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.645e-05/0.3921, allocations: 1.375 kB / 0.5356 GB, free: 9.109 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001133/0.3923, allocations: 32.36 kB / 0.5356 GB, free: 9.094 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.925e-06/0.3923, allocations: 9.297 kB / 0.5356 GB, free: 9.086 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.656e-05/0.3923, allocations: 9.406 kB / 0.5356 GB, free: 9.082 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.46e-05/0.3924, allocations: 9.375 kB / 0.5356 GB, free: 9.078 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.0001093/0.3925, allocations: 132.5 kB / 0.5358 GB, free: 8.949 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.998e-05/0.3925, allocations: 15.25 kB / 0.5358 GB, free: 8.938 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.226e-05/0.3925, allocations: 11.09 kB / 0.5358 GB, free: 8.93 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.21e-06/0.3926, allocations: 5.188 kB / 0.5358 GB, free: 8.926 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.242e-06/0.3926, allocations: 0 / 0.5358 GB, free: 8.926 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.921e-06/0.3926, allocations: 5.359 kB / 0.5358 GB, free: 8.922 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007018/0.3933, allocations: 439.1 kB / 0.5362 GB, free: 8.531 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.65e-06/0.3933, allocations: 3.938 kB / 0.5362 GB, free: 8.527 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.989e-05/0.3934, allocations: 15.45 kB / 0.5362 GB, free: 8.52 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.925e-06/0.3934, allocations: 0 / 0.5362 GB, free: 8.52 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.677e-05/0.3934, allocations: 10.16 kB / 0.5362 GB, free: 8.512 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.813e-06/0.3934, allocations: 0 / 0.5362 GB, free: 8.512 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.3934, allocations: 1.094 kB / 0.5362 GB, free: 8.512 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004175/0.3938, allocations: 254.1 kB / 0.5365 GB, free: 8.328 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.675e-05/0.3939, allocations: 87.17 kB / 0.5366 GB, free: 8.227 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.842e-05/0.3939, allocations: 6.375 kB / 0.5366 GB, free: 8.223 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001153/0.3941, allocations: 13.73 kB / 0.5366 GB, free: 8.215 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.202e-05/0.3941, allocations: 8.359 kB / 0.5366 GB, free: 8.211 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.045e-05/0.3941, allocations: 3.219 kB / 0.5366 GB, free: 8.211 MB / 398.1 MB Notification: Performance of sorting global known variables: time 6.535e-05/0.3942, allocations: 97.52 kB / 0.5367 GB, free: 8.125 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.3942, allocations: 0 / 0.5367 GB, free: 8.125 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002579/0.3945, allocations: 22.19 kB / 0.5367 GB, free: 8.121 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.0006782/0.3952, allocations: 0.7981 MB / 0.5375 GB, free: 7.391 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000305/0.3955, allocations: 106.6 kB / 0.5376 GB, free: 7.352 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.731e-06/0.3955, allocations: 4 kB / 0.5376 GB, free: 7.348 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001302/0.3956, allocations: 56.19 kB / 0.5377 GB, free: 7.324 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002908/0.3959, allocations: 15.38 kB / 0.5377 GB, free: 7.316 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002082/0.398, allocations: 1.662 MB / 0.5393 GB, free: 5.828 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003448/0.3984, allocations: 0.6918 MB / 0.54 GB, free: 5.125 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.694e-05/0.3985, allocations: 12.56 kB / 0.54 GB, free: 5.121 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.904e-05/0.3985, allocations: 24.81 kB / 0.54 GB, free: 5.102 MB / 398.1 MB Notification: Performance of SimCode: time 2.91e-07/0.3985, allocations: 0 / 0.54 GB, free: 5.102 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02191/0.4205, allocations: 2.283 MB / 0.5422 GB, free: 3.863 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.537/7.957, allocations: 8.844 kB / 0.5422 GB, free: 3.859 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