Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AixLib_AixLib.Controls.OBC.CDL.Discrete.Validation.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.001059/0.001059, allocations: 105.5 kB / 18.95 MB, free: 1.184 MB / 13.93 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.001072/0.001072, allocations: 211.6 kB / 22.25 MB, free: 3.574 MB / 13.93 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 0.998/0.998, allocations: 230.6 MB / 256 MB, free: 9.57 MB / 202.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.2.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.2.0/package.mo): time 0.03938/0.03938, allocations: 12.19 MB / 324.6 MB, free: 6.086 MB / 250.7 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/SDF master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SDF master/package.mo): time 0.0004508/0.0004508, allocations: 31.95 kB / 384.1 MB, free: 10.5 MB / 314.7 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 3.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 3.0.0/package.mo): time 1.696/1.696, allocations: 353.9 MB / 0.7787 GB, free: 4.531 MB / 0.5105 GB " [Timeout remaining time 178] Using package AixLib with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 3.0.0/package.mo) Using package SDF with version 0.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/SDF master/package.mo) Using package Modelica_DeviceDrivers with version 2.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.2.0/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(AixLib.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold,fileNamePrefix="AixLib_AixLib_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AixLib.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold,fileNamePrefix="AixLib_AixLib_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: AixLib requested package Modelica_DeviceDrivers of version 2.1.1. Modelica_DeviceDrivers 2.2.0 is used instead which states that it is fully compatible without conversion script needed. Notification: AixLib requested package Modelica of version 4.0.0. Modelica 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.001537/0.001537, allocations: 121.2 kB / 1.06 GB, free: 24.95 MB / 0.7137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2481/0.2496, allocations: 134.9 MB / 1.192 GB, free: 7.531 MB / 0.823 GB Notification: Performance of NFInst.instantiate(AixLib.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.001487/0.2511, allocations: 0.6631 MB / 1.192 GB, free: 6.871 MB / 0.823 GB Notification: Performance of NFInst.instExpressions: time 0.001127/0.2523, allocations: 1.114 MB / 1.193 GB, free: 5.746 MB / 0.823 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.741e-05/0.2523, allocations: 8 kB / 1.193 GB, free: 5.738 MB / 0.823 GB Notification: Performance of NFTyping.typeComponents: time 2.949e-05/0.2523, allocations: 7.875 kB / 1.193 GB, free: 5.73 MB / 0.823 GB Notification: Performance of NFTyping.typeBindings: time 6.659e-05/0.2524, allocations: 15.84 kB / 1.193 GB, free: 5.715 MB / 0.823 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002939/0.2527, allocations: 47.89 kB / 1.193 GB, free: 5.668 MB / 0.823 GB Notification: Performance of NFFlatten.flatten: time 9.931e-05/0.2528, allocations: 67.83 kB / 1.194 GB, free: 5.602 MB / 0.823 GB Notification: Performance of NFFlatten.resolveConnections: time 9.967e-05/0.2529, allocations: 8 kB / 1.194 GB, free: 5.594 MB / 0.823 GB Notification: Performance of NFEvalConstants.evaluate: time 6.624e-05/0.253, allocations: 27.92 kB / 1.194 GB, free: 5.566 MB / 0.823 GB Notification: Performance of NFSimplifyModel.simplify: time 4.949e-05/0.253, allocations: 31.83 kB / 1.194 GB, free: 5.535 MB / 0.823 GB Notification: Performance of NFPackage.collectConstants: time 1.343e-05/0.253, allocations: 4 kB / 1.194 GB, free: 5.531 MB / 0.823 GB Notification: Performance of NFFlatten.collectFunctions: time 6.028e-05/0.2531, allocations: 23.98 kB / 1.194 GB, free: 5.508 MB / 0.823 GB Notification: Performance of NFScalarize.scalarize: time 2.213e-05/0.2531, allocations: 19.98 kB / 1.194 GB, free: 5.488 MB / 0.823 GB Notification: Performance of NFVerifyModel.verify: time 3.661e-05/0.2531, allocations: 27.84 kB / 1.194 GB, free: 5.461 MB / 0.823 GB Notification: Performance of NFConvertDAE.convert: time 0.0001397/0.2533, allocations: 79.97 kB / 1.194 GB, free: 5.383 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.2533, allocations: 0 / 1.194 GB, free: 5.383 MB / 0.823 GB Notification: Performance of FrontEnd: time 1.713e-06/0.2533, allocations: 0 / 1.194 GB, free: 5.383 MB / 0.823 GB Notification: Performance of Transformations before backend: time 6.312e-06/0.2533, allocations: 4 kB / 1.194 GB, free: 5.379 MB / 0.823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0004771/0.2538, allocations: 302.1 kB / 1.194 GB, free: 5.051 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 4.05e-05/0.2538, allocations: 8.031 kB / 1.194 GB, free: 5.043 MB / 0.823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.474e-05/0.2538, allocations: 42.75 kB / 1.194 GB, free: 4.992 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.51e-05/0.2539, allocations: 12.88 kB / 1.194 GB, free: 4.98 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.898e-05/0.254, allocations: 114.4 kB / 1.194 GB, free: 4.844 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.073e-05/0.254, allocations: 4.375 kB / 1.194 GB, free: 4.84 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.269e-05/0.254, allocations: 8.375 kB / 1.194 GB, free: 4.832 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001556/0.2542, allocations: 86.08 kB / 1.194 GB, free: 4.742 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.955e-06/0.2542, allocations: 3.938 kB / 1.194 GB, free: 4.738 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.388e-06/0.2542, allocations: 0 / 1.194 GB, free: 4.738 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.598e-06/0.2542, allocations: 0 / 1.194 GB, free: 4.738 MB / 0.823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001174/0.2543, allocations: 59.95 kB / 1.194 GB, free: 4.68 MB / 0.823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006483/0.255, allocations: 263.8 kB / 1.195 GB, free: 4.379 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001381/0.2551, allocations: 82.41 kB / 1.195 GB, free: 4.289 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.551e-05/0.2552, allocations: 40.83 kB / 1.195 GB, free: 4.246 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.098e-05/0.2552, allocations: 0 / 1.195 GB, free: 4.246 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001726/0.2554, allocations: 87.38 kB / 1.195 GB, free: 4.148 MB / 0.823 GB Notification: Performance of pre-optimization done (n=10): time 1.473e-06/0.2554, allocations: 4 kB / 1.195 GB, free: 4.145 MB / 0.823 GB Notification: Performance of matching and sorting (n=10): time 0.0003293/0.2557, allocations: 173.7 kB / 1.195 GB, free: 3.969 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.037e-05/0.2557, allocations: 55.41 kB / 1.195 GB, free: 3.902 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.652e-05/0.2558, allocations: 109.8 kB / 1.195 GB, free: 3.785 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 1.707e-05/0.2558, allocations: 33.69 kB / 1.195 GB, free: 3.746 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 3.84e-05/0.2559, allocations: 96.38 kB / 1.195 GB, free: 3.645 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 2.295e-05/0.2559, allocations: 31.72 kB / 1.195 GB, free: 3.613 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.017e-05/0.2559, allocations: 33.7 kB / 1.195 GB, free: 3.574 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 7.929e-05/0.256, allocations: 326.8 kB / 1.196 GB, free: 3.246 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.257e-05/0.2561, allocations: 35.97 kB / 1.196 GB, free: 3.211 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.954e-05/0.2562, allocations: 64.94 kB / 1.196 GB, free: 3.141 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000139/0.2563, allocations: 94.53 kB / 1.196 GB, free: 3.039 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.2563, allocations: 3.938 kB / 1.196 GB, free: 3.035 MB / 0.823 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001912/0.2565, allocations: 141.5 kB / 1.196 GB, free: 2.891 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 1.56e-05/0.2565, allocations: 9.719 kB / 1.196 GB, free: 2.883 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.092e-06/0.2565, allocations: 3.984 kB / 1.196 GB, free: 2.879 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.45e-05/0.2565, allocations: 0 / 1.196 GB, free: 2.879 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.249e-05/0.2566, allocations: 27.92 kB / 1.196 GB, free: 2.852 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.39e-06/0.2566, allocations: 0 / 1.196 GB, free: 2.852 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.736e-05/0.2567, allocations: 11.98 kB / 1.196 GB, free: 2.84 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.546e-06/0.2567, allocations: 4.062 kB / 1.196 GB, free: 2.836 MB / 0.823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 12 (firOrdHol.firstTrigger,$PRE.firOrdHol.firstTrigger,firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.c,$PRE.firOrdHol.c,firOrdHol.pre_uSample,$PRE.firOrdHol.pre_uSample,firOrdHol.uSample,$PRE.firOrdHol.uSample,firOrdHol.tSample,$PRE.firOrdHol.tSample) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * 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.478e-05/0.2567, allocations: 129.7 kB / 1.196 GB, free: 2.699 MB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.888e-06/0.2568, allocations: 7.953 kB / 1.196 GB, free: 2.691 MB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002271/0.257, allocations: 150.2 kB / 1.196 GB, free: 2.535 MB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.797e-06/0.257, allocations: 4 kB / 1.196 GB, free: 2.531 MB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.07e-06/0.257, allocations: 0 / 1.196 GB, free: 2.531 MB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.352e-06/0.257, allocations: 3.984 kB / 1.196 GB, free: 2.527 MB / 0.823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003501/0.2573, allocations: 377.5 kB / 1.197 GB, free: 2.109 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.394e-06/0.2574, allocations: 0 / 1.197 GB, free: 2.109 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.747e-05/0.2574, allocations: 11.98 kB / 1.197 GB, free: 2.098 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.883e-06/0.2574, allocations: 0 / 1.197 GB, free: 2.098 MB / 0.823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.271e-05/0.2574, allocations: 0 / 1.197 GB, free: 2.098 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.362e-06/0.2574, allocations: 4 kB / 1.197 GB, free: 2.094 MB / 0.823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.2574, allocations: 0 / 1.197 GB, free: 2.094 MB / 0.823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001983/0.2576, allocations: 239.4 kB / 1.197 GB, free: 1.844 MB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 8.656e-06/0.2576, allocations: 7.953 kB / 1.197 GB, free: 1.836 MB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.466e-05/0.2576, allocations: 8 kB / 1.197 GB, free: 1.828 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.328e-05/0.2577, allocations: 7.984 kB / 1.197 GB, free: 1.82 MB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.73e-05/0.2577, allocations: 11.92 kB / 1.197 GB, free: 1.809 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.414e-06/0.2577, allocations: 4 kB / 1.197 GB, free: 1.805 MB / 0.823 GB Notification: Performance of sorting global known variables: time 3.094e-05/0.2578, allocations: 91.52 kB / 1.197 GB, free: 1.715 MB / 0.823 GB Notification: Performance of sort global known variables: time 6e-08/0.2578, allocations: 0 / 1.197 GB, free: 1.715 MB / 0.823 GB Notification: Performance of remove unused functions: time 0.000173/0.2579, allocations: 20 kB / 1.197 GB, free: 1.695 MB / 0.823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 7 (firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.firstTrigger,firOrdHol.tSample,firOrdHol.uSample,firOrdHol.pre_uSample,firOrdHol.c) * Number of discrete states: 2 (firOrdHol.uSample,firOrdHol.c) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0004409/0.2584, allocations: 0.7906 MB / 1.198 GB, free: 0.8789 MB / 0.823 GB Notification: Performance of simCode: created initialization part: time 0.0002561/0.2586, allocations: 95.88 kB / 1.198 GB, free: 0.7852 MB / 0.823 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.2586, allocations: 0 / 1.198 GB, free: 0.7852 MB / 0.823 GB Notification: Performance of simCode: created simulation system equations: time 8.118e-05/0.2587, allocations: 39.97 kB / 1.198 GB, free: 0.7461 MB / 0.823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002089/0.2589, allocations: 11.94 kB / 1.198 GB, free: 0.7344 MB / 0.823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001194/0.2601, allocations: 1.504 MB / 1.199 GB, free: 15.14 MB / 0.8387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.017e-05/0.2602, allocations: 75.53 kB / 1.2 GB, free: 15.05 MB / 0.8387 GB Notification: Performance of simCode: alias equations: time 3.407e-05/0.2602, allocations: 8.422 kB / 1.2 GB, free: 15.04 MB / 0.8387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.421e-05/0.2602, allocations: 19.44 kB / 1.2 GB, free: 15.02 MB / 0.8387 GB Notification: Performance of SimCode: time 7.02e-07/0.2602, allocations: 4 kB / 1.2 GB, free: 15.02 MB / 0.8387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01976/0.28, allocations: 2.655 MB / 1.202 GB, free: 12.51 MB / 0.8387 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.476/6.756, allocations: 10.59 kB / 1.202 GB, free: 12.5 MB / 0.8387 GB " [Timeout remaining time 653] (rm -f AixLib_AixLib.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; mkfifo AixLib_AixLib.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; head -c 1048576 < AixLib_AixLib.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe >> ../files/AixLib_AixLib.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AixLib_AixLib_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 AixLib_AixLib_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold.fmu > AixLib_AixLib.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.255938773043454] Failed to read output from testmodel.py, exit status != 0: 6.834759183228016 6.848077282 6.592963987 Calling exit ...