Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001652/0.001652, allocations: 105.1 kB / 21.21 MB, free: 0.6523 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002175/0.002175, allocations: 211.9 kB / 24.51 MB, free: 3.941 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.568/1.568, allocations: 230.6 MB / 258.3 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2556/0.2556, allocations: 46.96 MB / 361.7 MB, free: 4.043 MB / 286.1 MB " [Timeout remaining time 179] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.FirstOrderHold,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Blocks_FirstOrderHold",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.FirstOrderHold,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Blocks_FirstOrderHold",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002269/0.002269, allocations: 67.89 kB / 0.4969 GB, free: 7.75 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4075/0.4097, allocations: 66.04 MB / 0.5614 GB, free: 4.258 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.003039/0.4128, allocations: 1.515 MB / 0.5628 GB, free: 2.73 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001166/0.4139, allocations: 0.5221 MB / 0.5633 GB, free: 2.203 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.694e-05/0.414, allocations: 3.938 kB / 0.5633 GB, free: 2.199 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 3.843e-05/0.414, allocations: 7.922 kB / 0.5634 GB, free: 2.191 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 9.233e-05/0.4141, allocations: 11.86 kB / 0.5634 GB, free: 2.18 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003027/0.4144, allocations: 59.81 kB / 0.5634 GB, free: 2.121 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000185/0.4146, allocations: 91.7 kB / 0.5635 GB, free: 2.031 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001213/0.4147, allocations: 8 kB / 0.5635 GB, free: 2.023 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001848/0.4149, allocations: 47.89 kB / 0.5636 GB, free: 1.977 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001038/0.415, allocations: 47.77 kB / 0.5636 GB, free: 1.93 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.56e-05/0.415, allocations: 8 kB / 0.5636 GB, free: 1.922 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.347e-05/0.4151, allocations: 8 kB / 0.5636 GB, free: 1.914 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 4.547e-05/0.4151, allocations: 23.91 kB / 0.5636 GB, free: 1.891 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 6.45e-05/0.4152, allocations: 31.86 kB / 0.5637 GB, free: 1.859 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001909/0.4154, allocations: 81.53 kB / 0.5638 GB, free: 1.781 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.6e-06/0.4154, allocations: 0 / 0.5638 GB, free: 1.781 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.4154, allocations: 0 / 0.5638 GB, free: 1.781 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.713e-06/0.4154, allocations: 7.938 kB / 0.5638 GB, free: 1.773 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.0008168/0.4162, allocations: 334 kB / 0.5641 GB, free: 1.418 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.504e-05/0.4163, allocations: 8.031 kB / 0.5641 GB, free: 1.41 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.279e-05/0.4163, allocations: 4.188 kB / 0.5641 GB, free: 1.406 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.673e-05/0.4164, allocations: 38.73 kB / 0.5641 GB, free: 1.359 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001787/0.4165, allocations: 24.81 kB / 0.5642 GB, free: 1.336 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002907/0.4168, allocations: 138.4 kB / 0.5643 GB, free: 1.176 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.011e-05/0.4168, allocations: 8.375 kB / 0.5643 GB, free: 1.168 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.276e-05/0.4169, allocations: 8.359 kB / 0.5643 GB, free: 1.16 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000269/0.4171, allocations: 93.58 kB / 0.5644 GB, free: 1.062 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.338e-06/0.4171, allocations: 0 / 0.5644 GB, free: 1.062 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.666e-05/0.4172, allocations: 4 kB / 0.5644 GB, free: 1.059 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.572e-06/0.4172, allocations: 0 / 0.5644 GB, free: 1.059 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001464/0.4173, allocations: 43.97 kB / 0.5644 GB, free: 1.016 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006133/0.4179, allocations: 295.7 kB / 0.5647 GB, free: 0.6836 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002467/0.4182, allocations: 82.53 kB / 0.5648 GB, free: 0.5938 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001067/0.4183, allocations: 40.84 kB / 0.5648 GB, free: 0.5508 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.109e-05/0.4183, allocations: 0 / 0.5648 GB, free: 0.5508 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002223/0.4185, allocations: 107.3 kB / 0.5649 GB, free: 444 kB / 398.1 MB Notification: Performance of pre-optimization done (n=14): time 1.623e-06/0.4185, allocations: 0 / 0.5649 GB, free: 444 kB / 398.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005086/0.419, allocations: 197.4 kB / 0.5651 GB, free: 244 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.206e-05/0.4191, allocations: 59.41 kB / 0.5652 GB, free: 172 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001111/0.4192, allocations: 126 kB / 0.5653 GB, free: 36 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.514e-05/0.4193, allocations: 33.75 kB / 0.5653 GB, free: 15.99 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.193e-05/0.4193, allocations: 92.38 kB / 0.5654 GB, free: 15.89 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.629e-05/0.4194, allocations: 40.69 kB / 0.5655 GB, free: 15.86 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.457e-05/0.4194, allocations: 37.7 kB / 0.5655 GB, free: 15.82 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001507/0.4196, allocations: 326.8 kB / 0.5658 GB, free: 15.49 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001014/0.4197, allocations: 35.98 kB / 0.5658 GB, free: 15.45 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001286/0.4198, allocations: 73.39 kB / 0.5659 GB, free: 15.37 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002307/0.4201, allocations: 128.1 kB / 0.566 GB, free: 15.23 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.4201, allocations: 0 / 0.566 GB, free: 15.23 MB / 414.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003042/0.4204, allocations: 161.5 kB / 0.5662 GB, free: 15.06 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.647e-05/0.4204, allocations: 4 kB / 0.5662 GB, free: 15.06 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/0.4204, allocations: 4.125 kB / 0.5662 GB, free: 15.05 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.072e-05/0.4204, allocations: 7.938 kB / 0.5662 GB, free: 15.05 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001249/0.4205, allocations: 23.92 kB / 0.5662 GB, free: 15.02 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.816e-06/0.4205, allocations: 3.984 kB / 0.5662 GB, free: 15.02 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.605e-05/0.4206, allocations: 15.95 kB / 0.5662 GB, free: 15 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.288e-05/0.4206, allocations: 4 kB / 0.5663 GB, free: 15 MB / 414.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.00015/0.4208, allocations: 139.7 kB / 0.5664 GB, free: 14.85 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.164e-05/0.4208, allocations: 7.953 kB / 0.5664 GB, free: 14.84 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.641e-05/0.4208, allocations: 12.44 kB / 0.5664 GB, free: 14.83 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.608e-06/0.4208, allocations: 3.938 kB / 0.5664 GB, free: 14.82 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.558e-06/0.4208, allocations: 4 kB / 0.5664 GB, free: 14.82 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.025e-06/0.4208, allocations: 0 / 0.5664 GB, free: 14.82 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006061/0.4214, allocations: 417.4 kB / 0.5668 GB, free: 14.36 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.4214, allocations: 3.938 kB / 0.5668 GB, free: 14.36 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.529e-05/0.4215, allocations: 7.984 kB / 0.5668 GB, free: 14.35 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.531e-06/0.4215, allocations: 4 kB / 0.5668 GB, free: 14.35 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.394e-05/0.4215, allocations: 0 / 0.5668 GB, free: 14.35 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.218e-06/0.4215, allocations: 4 kB / 0.5668 GB, free: 14.34 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.537e-06/0.4215, allocations: 3.984 kB / 0.5668 GB, free: 14.34 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004031/0.4219, allocations: 275.1 kB / 0.5671 GB, free: 14.06 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.635e-05/0.4219, allocations: 7.953 kB / 0.5671 GB, free: 14.05 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.044e-05/0.422, allocations: 7.938 kB / 0.5671 GB, free: 14.04 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001157/0.4221, allocations: 11.98 kB / 0.5671 GB, free: 14.03 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.496e-05/0.4221, allocations: 7.984 kB / 0.5671 GB, free: 14.02 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.342e-05/0.4222, allocations: 7.984 kB / 0.5671 GB, free: 14.02 MB / 414.1 MB Notification: Performance of sorting global known variables: time 8.907e-05/0.4222, allocations: 91.28 kB / 0.5672 GB, free: 13.93 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4222, allocations: 0 / 0.5672 GB, free: 13.93 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002595/0.4225, allocations: 23.98 kB / 0.5672 GB, free: 13.9 MB / 414.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.0007135/0.4232, allocations: 0.7956 MB / 0.568 GB, free: 13.08 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002976/0.4235, allocations: 107.9 kB / 0.5681 GB, free: 12.98 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.4235, allocations: 0 / 0.5681 GB, free: 12.98 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001232/0.4236, allocations: 47.92 kB / 0.5682 GB, free: 12.93 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002965/0.4239, allocations: 14.8 kB / 0.5682 GB, free: 12.92 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002012/0.426, allocations: 1.669 MB / 0.5698 GB, free: 11.14 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.076e-05/0.426, allocations: 75.33 kB / 0.5699 GB, free: 11.05 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.848e-05/0.4261, allocations: 12.97 kB / 0.5699 GB, free: 11.04 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.497e-05/0.4261, allocations: 31.42 kB / 0.5699 GB, free: 11 MB / 414.1 MB Notification: Performance of SimCode: time 4.31e-07/0.4261, allocations: 0 / 0.5699 GB, free: 11 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02279/0.4489, allocations: 2.505 MB / 0.5724 GB, free: 8.648 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.39/11.84, allocations: 12.05 kB / 0.5724 GB, free: 8.637 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Blocks_FirstOrderHold_fmu --startTime=0 --stopTime=2 --stepSize=0.000396747 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Blocks_FirstOrderHold.fmu > ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.962394422036596] Failed to read output from testmodel.py, exit status != 0: ['time', 'firstOrderHold.c', 'firstOrderHold.firstTrigger', 'firstOrderHold.pre_uSample', 'firstOrderHold.tSample', 'firstOrderHold.uSample', 'zeroOrderHold.firstTrigger', 'zeroOrderHold.ySample'] 12.00116352410987 12.025204527 11.604960292 Calling exit ...