Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor.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.0008689/0.0008689, allocations: 80.44 kB / 19.17 MB, free: 0.7422 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.001346/0.001346, allocations: 170.3 kB / 22.46 MB, free: 2.105 MB / 18.57 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.8861/0.8861, allocations: 177.1 MB / 202.8 MB, free: 5.75 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/package.mo", uses=false) [Timeout 180] "[/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/Examples/PPD12/Structure.mo:531:21-531:190:writable] Warning: Lexer treating \\ as \\\\, since \\e is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/Examples/PPD12/Structure.mo:531:21-531:198:writable] Warning: Lexer treating \\ as \\\\, since \\< is not a valid Modelica escape sequence. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/package.mo): time 0.7452/0.7452, allocations: 154.5 MB / 413.7 MB, free: 0.8125 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/Utilities/Cryptographics/BaseClasses/sha.mo:2:1-19:8:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/Utilities/File/sha2.mo:2:1-9:9:writable] Warning: External function annotation should occur on the external-clause, not on the function. " [Timeout remaining time 179] Using package IDEAS with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/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(IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.272e-06/1.272e-06, allocations: 0 / 0.618 GB, free: 13.76 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.376e-05/1.503e-05, allocations: 2.281 kB / 0.618 GB, free: 13.75 MB / 0.5886 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.002172/0.002187, allocations: 1.922 MB / 0.6199 GB, free: 11.82 MB / 0.5886 GB Notification: Performance of NFInst.instExpressions: time 0.0008988/0.003085, allocations: 0.7011 MB / 0.6206 GB, free: 11.11 MB / 0.5886 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.792e-05/0.003183, allocations: 0 / 0.6206 GB, free: 11.11 MB / 0.5886 GB Notification: Performance of NFTyping.typeComponents: time 0.0002145/0.003398, allocations: 91.5 kB / 0.6207 GB, free: 11.02 MB / 0.5886 GB Notification: Performance of NFTyping.typeBindings: time 8.794e-05/0.003486, allocations: 87.62 kB / 0.6208 GB, free: 10.93 MB / 0.5886 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004328/0.003918, allocations: 191.5 kB / 0.6209 GB, free: 10.75 MB / 0.5886 GB Notification: Performance of NFFlatten.flatten: time 0.0002138/0.004132, allocations: 263.4 kB / 0.6212 GB, free: 10.49 MB / 0.5886 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001196/0.004252, allocations: 46.17 kB / 0.6212 GB, free: 10.44 MB / 0.5886 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001358/0.004388, allocations: 159.7 kB / 0.6214 GB, free: 10.28 MB / 0.5886 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001493/0.004537, allocations: 135.7 kB / 0.6215 GB, free: 10.15 MB / 0.5886 GB Notification: Performance of NFPackage.collectConstants: time 3.354e-05/0.004571, allocations: 20 kB / 0.6215 GB, free: 10.13 MB / 0.5886 GB Notification: Performance of NFFlatten.collectFunctions: time 9.935e-05/0.00467, allocations: 83.94 kB / 0.6216 GB, free: 10.05 MB / 0.5886 GB Notification: Performance of NFScalarize.scalarize: time 6.164e-05/0.004731, allocations: 63.77 kB / 0.6217 GB, free: 9.984 MB / 0.5886 GB Notification: Performance of NFVerifyModel.verify: time 6.411e-05/0.004796, allocations: 67.83 kB / 0.6217 GB, free: 9.918 MB / 0.5886 GB Notification: Performance of NFConvertDAE.convert: time 0.000279/0.005075, allocations: 331 kB / 0.6221 GB, free: 9.594 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 1.603e-06/0.005076, allocations: 4 kB / 0.6221 GB, free: 9.59 MB / 0.5886 GB Notification: Performance of FrontEnd: time 8.72e-07/0.005077, allocations: 0 / 0.6221 GB, free: 9.59 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 4.108e-06/0.005081, allocations: 0 / 0.6221 GB, free: 9.59 MB / 0.5886 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.0005881/0.005669, allocations: 0.5102 MB / 0.6226 GB, free: 9.043 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 3.52e-05/0.005704, allocations: 13.47 kB / 0.6226 GB, free: 9.031 MB / 0.5886 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.423e-05/0.005739, allocations: 46.73 kB / 0.6226 GB, free: 8.977 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.269e-05/0.005781, allocations: 32.75 kB / 0.6227 GB, free: 8.945 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003015/0.006083, allocations: 236.9 kB / 0.6229 GB, free: 8.691 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.772e-05/0.006101, allocations: 12.38 kB / 0.6229 GB, free: 8.68 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.426e-05/0.006125, allocations: 16.33 kB / 0.6229 GB, free: 8.664 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002803/0.006405, allocations: 304.8 kB / 0.6232 GB, free: 8.324 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.544e-06/0.006413, allocations: 8.188 kB / 0.6232 GB, free: 8.316 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.439e-05/0.006427, allocations: 7.938 kB / 0.6232 GB, free: 8.309 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.382e-06/0.006433, allocations: 4 kB / 0.6232 GB, free: 8.305 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001726/0.006606, allocations: 159 kB / 0.6234 GB, free: 8.145 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005528/0.007159, allocations: 0.6098 MB / 0.624 GB, free: 7.484 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002236/0.007383, allocations: 184.2 kB / 0.6241 GB, free: 7.289 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001111/0.007494, allocations: 118.7 kB / 0.6243 GB, free: 7.164 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 1.407e-05/0.007508, allocations: 7.938 kB / 0.6243 GB, free: 7.156 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001979/0.007706, allocations: 202.7 kB / 0.6245 GB, free: 6.934 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=15): time 1.402e-06/0.007707, allocations: 3.938 kB / 0.6245 GB, free: 6.93 MB / 0.5886 GB Notification: Performance of matching and sorting (n=15): time 0.0008085/0.008516, allocations: 453.4 kB / 0.6249 GB, free: 6.465 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003583/0.008874, allocations: 136.5 kB / 0.625 GB, free: 6.301 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001902/0.009064, allocations: 277.9 kB / 0.6253 GB, free: 6.016 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 1.961e-05/0.009084, allocations: 33.7 kB / 0.6253 GB, free: 5.977 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 8.96e-05/0.009173, allocations: 152.4 kB / 0.6255 GB, free: 5.824 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 2.88e-05/0.009202, allocations: 51.58 kB / 0.6255 GB, free: 5.773 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.026e-05/0.009252, allocations: 37.7 kB / 0.6255 GB, free: 5.73 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 8.679e-05/0.009339, allocations: 338.8 kB / 0.6259 GB, free: 5.391 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001137/0.009453, allocations: 113.7 kB / 0.626 GB, free: 5.273 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001425/0.009595, allocations: 222.1 kB / 0.6262 GB, free: 5.02 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000203/0.009798, allocations: 249.1 kB / 0.6264 GB, free: 4.754 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.009801, allocations: 0 / 0.6264 GB, free: 4.754 MB / 0.5886 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003046/0.01011, allocations: 374.8 kB / 0.6268 GB, free: 4.371 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 2.883e-05/0.01013, allocations: 37.69 kB / 0.6268 GB, free: 4.328 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.57e-06/0.01014, allocations: 4 kB / 0.6268 GB, free: 4.324 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.046e-05/0.01015, allocations: 4.094 kB / 0.6268 GB, free: 4.32 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.785e-05/0.01023, allocations: 27.92 kB / 0.6269 GB, free: 4.293 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.679e-06/0.01023, allocations: 0 / 0.6269 GB, free: 4.293 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.807e-05/0.0103, allocations: 31.86 kB / 0.6269 GB, free: 4.262 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.09e-05/0.01031, allocations: 4 kB / 0.6269 GB, free: 4.258 MB / 0.5886 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 12 (ySet.nextEventScaled,ySet.nextEvent,$PRE.ySet.nextEvent,ySet.last,ySet.b,ySet.a,mot.lowHys.y,$PRE.mot.lowHys.y,mot.uppHys.y,$PRE.mot.uppHys.y,$whenCondition1,mot.int.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 1 * 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.0001203/0.01043, allocations: 203.7 kB / 0.6271 GB, free: 4.047 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.349e-05/0.01046, allocations: 27.81 kB / 0.6271 GB, free: 4.02 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.452e-05/0.01049, allocations: 29.77 kB / 0.6271 GB, free: 3.988 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.01049, allocations: 7.938 kB / 0.6271 GB, free: 3.98 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.999e-06/0.0105, allocations: 4 kB / 0.6272 GB, free: 3.977 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.775e-06/0.0105, allocations: 0 / 0.6272 GB, free: 3.977 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001522/0.01065, allocations: 228.6 kB / 0.6274 GB, free: 3.711 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.11e-07/0.01065, allocations: 0 / 0.6274 GB, free: 3.711 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.95e-05/0.01071, allocations: 23.92 kB / 0.6274 GB, free: 3.688 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.966e-06/0.01071, allocations: 4 kB / 0.6274 GB, free: 3.684 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.206e-05/0.01073, allocations: 3.984 kB / 0.6274 GB, free: 3.68 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.01073, allocations: 4 kB / 0.6274 GB, free: 3.676 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.72e-07/0.01073, allocations: 0 / 0.6274 GB, free: 3.676 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004511/0.01118, allocations: 0.5213 MB / 0.6279 GB, free: 3.117 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 2.31e-05/0.0112, allocations: 27.83 kB / 0.6279 GB, free: 3.09 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.472e-05/0.01123, allocations: 4 kB / 0.6279 GB, free: 3.086 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.92e-05/0.01128, allocations: 15.98 kB / 0.628 GB, free: 3.07 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.919e-05/0.01134, allocations: 23.95 kB / 0.628 GB, free: 3.047 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.575e-05/0.01135, allocations: 7.984 kB / 0.628 GB, free: 3.039 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.0001279/0.01148, allocations: 201.4 kB / 0.6282 GB, free: 2.844 MB / 0.5886 GB Notification: Performance of sort global known variables: time 9e-08/0.01148, allocations: 0 / 0.6282 GB, free: 2.844 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0001811/0.01166, allocations: 63.94 kB / 0.6282 GB, free: 2.781 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (mot.int.y) * Number of discrete variables: 8 ($whenCondition1,mot.uppHys.y,mot.lowHys.y,ySet.a,ySet.b,ySet.last,ySet.nextEvent,ySet.nextEventScaled) * Number of discrete states: 8 (mot.lowHys.y,mot.uppHys.y,ySet.nextEvent,ySet.last,ySet.nextEventScaled,ySet.b,ySet.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 1 * 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 Backend phase and start with SimCode phase: time 0.0007076/0.01237, allocations: 1.108 MB / 0.6293 GB, free: 1.629 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0003114/0.01268, allocations: 322.6 kB / 0.6296 GB, free: 1.289 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.01268, allocations: 256 / 0.6296 GB, free: 1.289 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.0001352/0.01282, allocations: 193 kB / 0.6298 GB, free: 1.082 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001947/0.01301, allocations: 34.36 kB / 0.6298 GB, free: 1.047 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002518/0.01553, allocations: 2.935 MB / 0.6327 GB, free: 13.98 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.531e-05/0.01562, allocations: 136.8 kB / 0.6328 GB, free: 13.83 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 5.662e-05/0.01567, allocations: 21.42 kB / 0.6329 GB, free: 13.81 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.597e-05/0.01575, allocations: 76.47 kB / 0.6329 GB, free: 13.73 MB / 0.6042 GB Notification: Performance of SimCode: time 5.81e-07/0.01575, allocations: 0 / 0.6329 GB, free: 13.73 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01999/0.03574, allocations: 6.231 MB / 0.639 GB, free: 7.699 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.021/7.057, allocations: 0.5 kB / 0.639 GB, free: 7.699 MB / 0.6042 GB " [Timeout remaining time 653] (rm -f IDEAS_dev_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Fluid_Actuators_Motors_Examples_IdealMotor_fmu --startTime=0 --stopTime=600 --stepSize=0.24 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Fluid_Actuators_Motors_Examples_IdealMotor.fmu > IDEAS_dev_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.786853276193142] Failed to read output from testmodel.py, exit status != 0: 7.1392670050263405 7.153510738 7.145584478 Calling exit ...