Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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.001715/0.001715, allocations: 119.6 kB / 17.83 MB, free: 5.203 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.002157/0.002157, allocations: 210.3 kB / 20.8 MB, free: 2.258 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.549/1.549, allocations: 207.6 MB / 231.2 MB, free: 4.125 MB / 174.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.349/0.349, allocations: 44.23 MB / 327.3 MB, free: 6.676 MB / 254.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_ModelicaTest_Blocks_FirstOrderHold",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.FirstOrderHold,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_FirstOrderHold",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002223/0.002223, allocations: 75.83 kB / 462.9 MB, free: 0.8906 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.243/0.2453, allocations: 61 MB / 0.5116 GB, free: 13.14 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.002289/0.2476, allocations: 1.527 MB / 0.5131 GB, free: 11.94 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.000717/0.2483, allocations: 0.5361 MB / 0.5136 GB, free: 11.51 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.427e-05/0.2483, allocations: 5.156 kB / 0.5136 GB, free: 11.51 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 2.507e-05/0.2483, allocations: 3.938 kB / 0.5137 GB, free: 11.5 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 8.285e-05/0.2484, allocations: 16.88 kB / 0.5137 GB, free: 11.49 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001748/0.2486, allocations: 34.86 kB / 0.5137 GB, free: 11.46 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000104/0.2487, allocations: 90.73 kB / 0.5138 GB, free: 11.41 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.393e-05/0.2488, allocations: 14.2 kB / 0.5138 GB, free: 11.4 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000102/0.2489, allocations: 50.48 kB / 0.5139 GB, free: 11.36 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.008e-05/0.249, allocations: 35.66 kB / 0.5139 GB, free: 11.34 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.044e-05/0.249, allocations: 6.656 kB / 0.5139 GB, free: 11.34 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.418e-05/0.249, allocations: 8.969 kB / 0.5139 GB, free: 11.34 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.625e-05/0.249, allocations: 23.44 kB / 0.5139 GB, free: 11.32 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 4.313e-05/0.2491, allocations: 34.52 kB / 0.514 GB, free: 11.29 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001034/0.2492, allocations: 74.27 kB / 0.514 GB, free: 11.24 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.357e-06/0.2492, allocations: 0 / 0.514 GB, free: 11.24 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.2492, allocations: 0 / 0.514 GB, free: 11.24 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.19e-06/0.2492, allocations: 4 kB / 0.514 GB, free: 11.24 MB / 382.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.0005689/0.2498, allocations: 397 kB / 0.5144 GB, free: 10.84 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.015e-05/0.2498, allocations: 14.08 kB / 0.5144 GB, free: 10.84 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.849e-05/0.2498, allocations: 5.391 kB / 0.5144 GB, free: 10.84 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.508e-05/0.2498, allocations: 40.94 kB / 0.5145 GB, free: 10.79 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.479e-05/0.2499, allocations: 17.88 kB / 0.5145 GB, free: 10.78 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001003/0.25, allocations: 176.5 kB / 0.5147 GB, free: 10.57 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.944e-05/0.25, allocations: 8.562 kB / 0.5147 GB, free: 10.57 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.925e-05/0.25, allocations: 5.812 kB / 0.5147 GB, free: 10.57 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000183/0.2502, allocations: 88.42 kB / 0.5147 GB, free: 10.5 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.959e-06/0.2502, allocations: 0 / 0.5147 GB, free: 10.5 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.335e-05/0.2502, allocations: 1.156 kB / 0.5147 GB, free: 10.5 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.52e-06/0.2502, allocations: 1.344 kB / 0.5148 GB, free: 10.5 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000126/0.2504, allocations: 48.38 kB / 0.5148 GB, free: 10.48 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004742/0.2508, allocations: 339.5 kB / 0.5151 GB, free: 10.13 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001661/0.251, allocations: 77.05 kB / 0.5152 GB, free: 10.08 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.973e-05/0.2511, allocations: 37.52 kB / 0.5152 GB, free: 10.05 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.961e-05/0.2511, allocations: 1.469 kB / 0.5152 GB, free: 10.05 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001861/0.2513, allocations: 106 kB / 0.5153 GB, free: 9.965 MB / 382.1 MB Notification: Performance of pre-optimization done (n=14): time 1.443e-06/0.2513, allocations: 0 / 0.5153 GB, free: 9.965 MB / 382.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004269/0.2517, allocations: 184.7 kB / 0.5155 GB, free: 9.871 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.153e-05/0.2517, allocations: 58.42 kB / 0.5156 GB, free: 9.805 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.649e-05/0.2518, allocations: 116.5 kB / 0.5157 GB, free: 9.695 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.528e-05/0.2518, allocations: 31.52 kB / 0.5157 GB, free: 9.66 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.858e-05/0.2518, allocations: 97.2 kB / 0.5158 GB, free: 9.566 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.917e-05/0.2519, allocations: 45.08 kB / 0.5158 GB, free: 9.527 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.582e-05/0.2519, allocations: 38.08 kB / 0.5159 GB, free: 9.496 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.211e-05/0.252, allocations: 324.6 kB / 0.5162 GB, free: 9.172 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.789e-05/0.252, allocations: 32.52 kB / 0.5162 GB, free: 9.16 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.576e-05/0.2521, allocations: 77.81 kB / 0.5163 GB, free: 9.09 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000166/0.2523, allocations: 120.8 kB / 0.5164 GB, free: 9 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.2523, allocations: 0 / 0.5164 GB, free: 9 MB / 382.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002388/0.2525, allocations: 170.4 kB / 0.5166 GB, free: 8.898 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.698e-05/0.2526, allocations: 5.5 kB / 0.5166 GB, free: 8.898 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.843e-06/0.2526, allocations: 1.75 kB / 0.5166 GB, free: 8.898 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.991e-05/0.2526, allocations: 10.69 kB / 0.5166 GB, free: 8.891 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001141/0.2527, allocations: 27.05 kB / 0.5166 GB, free: 8.879 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.045e-06/0.2527, allocations: 2.75 kB / 0.5166 GB, free: 8.879 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.01e-05/0.2528, allocations: 12.02 kB / 0.5166 GB, free: 8.871 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.545e-05/0.2528, allocations: 9.5 kB / 0.5166 GB, free: 8.867 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 18 (firstOrderHold.firstTrigger,$PRE.firstOrderHold.firstTrigger,zeroOrderHold.firstTrigger,$PRE.zeroOrderHold.firstTrigger,$PRE.zeroOrderHold.ySample,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) * 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 7.942e-05/0.2529, allocations: 132.4 kB / 0.5168 GB, free: 8.734 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.8e-05/0.2529, allocations: 8.078 kB / 0.5168 GB, free: 8.73 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.219e-05/0.2529, allocations: 17.81 kB / 0.5168 GB, free: 8.711 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.687e-06/0.2529, allocations: 2.75 kB / 0.5168 GB, free: 8.711 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.711e-06/0.2529, allocations: 0 / 0.5168 GB, free: 8.711 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.526e-06/0.2529, allocations: 0 / 0.5168 GB, free: 8.711 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004304/0.2534, allocations: 443.8 kB / 0.5172 GB, free: 8.312 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.704e-06/0.2534, allocations: 1.375 kB / 0.5172 GB, free: 8.312 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.319e-05/0.2534, allocations: 13.48 kB / 0.5172 GB, free: 8.305 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.664e-06/0.2534, allocations: 1.375 kB / 0.5172 GB, free: 8.305 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.27e-05/0.2534, allocations: 1.375 kB / 0.5172 GB, free: 8.305 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.024e-06/0.2534, allocations: 5.312 kB / 0.5172 GB, free: 8.301 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.2534, allocations: 0 / 0.5172 GB, free: 8.301 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002634/0.2537, allocations: 256.2 kB / 0.5175 GB, free: 8.109 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.141e-05/0.2537, allocations: 86.86 kB / 0.5176 GB, free: 8.008 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.226e-05/0.2537, allocations: 5.938 kB / 0.5176 GB, free: 8.004 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001087/0.2539, allocations: 9.078 kB / 0.5176 GB, free: 8 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.852e-05/0.2539, allocations: 7.969 kB / 0.5176 GB, free: 7.996 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.881e-05/0.2539, allocations: 9.109 kB / 0.5176 GB, free: 7.992 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.448e-05/0.2539, allocations: 86.47 kB / 0.5177 GB, free: 7.914 MB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2539, allocations: 1.062 kB / 0.5177 GB, free: 7.914 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002526/0.2542, allocations: 25.58 kB / 0.5177 GB, free: 7.906 MB / 382.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.0004942/0.2547, allocations: 0.7956 MB / 0.5185 GB, free: 7.176 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002419/0.2549, allocations: 94.92 kB / 0.5186 GB, free: 7.141 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.604e-06/0.2549, allocations: 1.594 kB / 0.5186 GB, free: 7.141 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001119/0.255, allocations: 58.88 kB / 0.5186 GB, free: 7.109 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002991/0.2553, allocations: 17.61 kB / 0.5186 GB, free: 7.098 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001679/0.257, allocations: 1.647 MB / 0.5203 GB, free: 5.602 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001437/0.2572, allocations: 0.6967 MB / 0.5209 GB, free: 4.895 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 3.991e-05/0.2572, allocations: 14.36 kB / 0.5209 GB, free: 4.887 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.342e-05/0.2573, allocations: 23.66 kB / 0.521 GB, free: 4.867 MB / 382.1 MB Notification: Performance of SimCode: time 3.01e-07/0.2573, allocations: 4 kB / 0.521 GB, free: 4.863 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.017/0.2743, allocations: 2.206 MB / 0.5231 GB, free: 2.652 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.872/9.147, allocations: 1.953 kB / 0.5231 GB, free: 2.652 MB / 382.1 MB " [Timeout remaining time 651] (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Blocks_FirstOrderHold_fmu --startTime=0 --stopTime=2 --stepSize=0.000396747 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Blocks_FirstOrderHold.fmu > ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 12.384747697040439] 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'] 9.274914660025388 9.298917716 9.044680383 Calling exit ...