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.001176/0.001176, allocations: 117.8 kB / 17.79 MB, free: 5.305 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001377/0.001377, allocations: 199.8 kB / 18.73 MB, free: 4.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.402/1.402, allocations: 227.4 MB / 246.9 MB, free: 10.51 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2155/0.2155, allocations: 46.09 MB / 344.3 MB, free: 11.53 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001491/0.001491, allocations: 71.88 kB / 480.8 MB, free: 4.617 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3095/0.311, allocations: 62.44 MB / 0.5305 GB, free: 13.33 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.002774/0.3138, allocations: 1.548 MB / 0.532 GB, free: 12.11 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001064/0.3149, allocations: 0.5553 MB / 0.5326 GB, free: 11.67 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.478e-05/0.315, allocations: 1.281 kB / 0.5326 GB, free: 11.67 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 2.939e-05/0.315, allocations: 3.938 kB / 0.5326 GB, free: 11.67 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001016/0.3151, allocations: 20.91 kB / 0.5326 GB, free: 11.65 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002667/0.3154, allocations: 57.38 kB / 0.5326 GB, free: 11.6 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001531/0.3156, allocations: 88.17 kB / 0.5327 GB, free: 11.55 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000101/0.3157, allocations: 19.05 kB / 0.5327 GB, free: 11.54 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001587/0.3158, allocations: 49.8 kB / 0.5328 GB, free: 11.51 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.685e-05/0.3159, allocations: 39.55 kB / 0.5328 GB, free: 11.48 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.947e-05/0.316, allocations: 8.094 kB / 0.5328 GB, free: 11.48 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.68e-05/0.316, allocations: 8.812 kB / 0.5328 GB, free: 11.48 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.868e-05/0.3161, allocations: 27.81 kB / 0.5329 GB, free: 11.46 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.543e-05/0.3161, allocations: 42.11 kB / 0.5329 GB, free: 11.43 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001406/0.3163, allocations: 78.67 kB / 0.533 GB, free: 11.37 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.3163, allocations: 0.7812 kB / 0.533 GB, free: 11.37 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.3163, allocations: 0 / 0.533 GB, free: 11.37 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.811e-06/0.3163, allocations: 0 / 0.533 GB, free: 11.37 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.0006591/0.317, allocations: 409.6 kB / 0.5334 GB, free: 10.96 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.675e-05/0.317, allocations: 13.62 kB / 0.5334 GB, free: 10.96 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.107e-05/0.3171, allocations: 48.05 kB / 0.5334 GB, free: 10.91 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001406/0.3172, allocations: 19.83 kB / 0.5334 GB, free: 10.9 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002229/0.3174, allocations: 180.6 kB / 0.5336 GB, free: 10.69 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.857e-05/0.3175, allocations: 11.05 kB / 0.5336 GB, free: 10.68 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.026e-05/0.3175, allocations: 11.25 kB / 0.5336 GB, free: 10.68 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002117/0.3177, allocations: 89.27 kB / 0.5337 GB, free: 10.61 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.807e-06/0.3177, allocations: 0 / 0.5337 GB, free: 10.61 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.261e-05/0.3177, allocations: 1.375 kB / 0.5337 GB, free: 10.61 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.17e-06/0.3178, allocations: 5.375 kB / 0.5337 GB, free: 10.61 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000137/0.3179, allocations: 48.66 kB / 0.5338 GB, free: 10.59 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005162/0.3184, allocations: 329.7 kB / 0.5341 GB, free: 10.25 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002086/0.3186, allocations: 93.16 kB / 0.5342 GB, free: 10.19 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001018/0.3188, allocations: 50.77 kB / 0.5342 GB, free: 10.16 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.506e-05/0.3188, allocations: 2.688 kB / 0.5342 GB, free: 10.16 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002023/0.319, allocations: 99.48 kB / 0.5343 GB, free: 10.08 MB / 398.1 MB Notification: Performance of pre-optimization done (n=14): time 1.773e-06/0.319, allocations: 0 / 0.5343 GB, free: 10.08 MB / 398.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004796/0.3195, allocations: 192.7 kB / 0.5345 GB, free: 9.98 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.229e-05/0.3196, allocations: 63.17 kB / 0.5346 GB, free: 9.91 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.327e-05/0.3197, allocations: 120.3 kB / 0.5347 GB, free: 9.797 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.274e-05/0.3197, allocations: 32.2 kB / 0.5347 GB, free: 9.762 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.01e-05/0.3197, allocations: 94.98 kB / 0.5348 GB, free: 9.664 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.966e-05/0.3198, allocations: 33.91 kB / 0.5348 GB, free: 9.637 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.613e-05/0.3198, allocations: 37.86 kB / 0.5349 GB, free: 9.605 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.941e-05/0.32, allocations: 325 kB / 0.5352 GB, free: 9.281 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000105/0.3201, allocations: 45.22 kB / 0.5352 GB, free: 9.258 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001146/0.3202, allocations: 75.77 kB / 0.5353 GB, free: 9.195 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002122/0.3204, allocations: 126.7 kB / 0.5354 GB, free: 9.109 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.3204, allocations: 224 / 0.5354 GB, free: 9.109 MB / 398.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002936/0.3207, allocations: 161.2 kB / 0.5356 GB, free: 9.02 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.481e-05/0.3207, allocations: 15.34 kB / 0.5356 GB, free: 9.012 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.27e-06/0.3208, allocations: 1.438 kB / 0.5356 GB, free: 9.012 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.393e-05/0.3208, allocations: 2.719 kB / 0.5356 GB, free: 9.012 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001157/0.3209, allocations: 23.55 kB / 0.5356 GB, free: 9.004 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.462e-06/0.3209, allocations: 5.219 kB / 0.5356 GB, free: 9 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.918e-05/0.321, allocations: 12.94 kB / 0.5356 GB, free: 8.992 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.462e-05/0.321, allocations: 8.828 kB / 0.5356 GB, free: 8.988 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.0001161/0.3211, allocations: 132.5 kB / 0.5358 GB, free: 8.859 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.185e-05/0.3212, allocations: 8.438 kB / 0.5358 GB, free: 8.855 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.208e-05/0.3212, allocations: 11.19 kB / 0.5358 GB, free: 8.848 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.01e-06/0.3212, allocations: 5.438 kB / 0.5358 GB, free: 8.844 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.478e-06/0.3212, allocations: 0 / 0.5358 GB, free: 8.844 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.778e-06/0.3212, allocations: 3.984 kB / 0.5358 GB, free: 8.84 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000545/0.3218, allocations: 452.6 kB / 0.5362 GB, free: 8.438 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.807e-06/0.3218, allocations: 3.938 kB / 0.5362 GB, free: 8.434 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.607e-05/0.3219, allocations: 10.86 kB / 0.5362 GB, free: 8.43 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.445e-06/0.3219, allocations: 0 / 0.5362 GB, free: 8.43 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.444e-05/0.3219, allocations: 5.375 kB / 0.5362 GB, free: 8.426 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.924e-06/0.3219, allocations: 1.375 kB / 0.5362 GB, free: 8.426 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.3219, allocations: 0 / 0.5362 GB, free: 8.426 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003298/0.3222, allocations: 259 kB / 0.5365 GB, free: 8.234 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.209e-05/0.3223, allocations: 87.77 kB / 0.5366 GB, free: 8.133 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.895e-05/0.3223, allocations: 6.406 kB / 0.5366 GB, free: 8.129 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001162/0.3224, allocations: 9.328 kB / 0.5366 GB, free: 8.125 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.253e-05/0.3225, allocations: 8.391 kB / 0.5366 GB, free: 8.121 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.983e-05/0.3225, allocations: 7.375 kB / 0.5366 GB, free: 8.117 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.418e-05/0.3226, allocations: 92.8 kB / 0.5367 GB, free: 8.035 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3226, allocations: 4 kB / 0.5367 GB, free: 8.031 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002616/0.3229, allocations: 22.72 kB / 0.5367 GB, free: 8.027 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.0005872/0.3234, allocations: 0.7932 MB / 0.5375 GB, free: 7.305 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002912/0.3237, allocations: 109.8 kB / 0.5376 GB, free: 7.262 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.3238, allocations: 5.062 kB / 0.5376 GB, free: 7.258 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001235/0.3239, allocations: 56.25 kB / 0.5377 GB, free: 7.234 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002736/0.3242, allocations: 12.7 kB / 0.5377 GB, free: 7.227 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001806/0.326, allocations: 1.654 MB / 0.5393 GB, free: 5.738 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002282/0.3262, allocations: 0.6972 MB / 0.54 GB, free: 5.031 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 4.846e-05/0.3263, allocations: 11.97 kB / 0.54 GB, free: 5.027 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.552e-05/0.3264, allocations: 29.61 kB / 0.54 GB, free: 5.004 MB / 398.1 MB Notification: Performance of SimCode: time 3.2e-07/0.3264, allocations: 0 / 0.54 GB, free: 5.004 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01792/0.3443, allocations: 2.276 MB / 0.5422 GB, free: 3.777 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.469/7.813, allocations: 11.53 kB / 0.5422 GB, free: 3.77 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