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.0007778/0.0007778, 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.0009134/0.0009134, 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.9474/0.9474, allocations: 177.1 MB / 202.8 MB, free: 5.746 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.7404/0.7404, allocations: 154.6 MB / 413.7 MB, free: 0.832 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.523e-06/1.523e-06, allocations: 0 / 0.618 GB, free: 13.78 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.759e-05/1.912e-05, allocations: 2.281 kB / 0.618 GB, free: 13.77 MB / 0.5886 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.002392/0.002411, allocations: 1.915 MB / 0.6199 GB, free: 11.84 MB / 0.5886 GB Notification: Performance of NFInst.instExpressions: time 0.0009885/0.003399, allocations: 0.7088 MB / 0.6206 GB, free: 11.13 MB / 0.5886 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001097/0.003509, allocations: 0 / 0.6206 GB, free: 11.13 MB / 0.5886 GB Notification: Performance of NFTyping.typeComponents: time 0.0002029/0.003712, allocations: 79.64 kB / 0.6207 GB, free: 11.05 MB / 0.5886 GB Notification: Performance of NFTyping.typeBindings: time 9.649e-05/0.003809, allocations: 95.52 kB / 0.6208 GB, free: 10.96 MB / 0.5886 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004864/0.004295, allocations: 194.6 kB / 0.6209 GB, free: 10.77 MB / 0.5886 GB Notification: Performance of NFFlatten.flatten: time 0.0002753/0.00457, allocations: 263.4 kB / 0.6212 GB, free: 10.51 MB / 0.5886 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001243/0.004695, allocations: 46.17 kB / 0.6212 GB, free: 10.46 MB / 0.5886 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001716/0.004866, allocations: 155.7 kB / 0.6214 GB, free: 10.31 MB / 0.5886 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001581/0.005024, allocations: 139.7 kB / 0.6215 GB, free: 10.17 MB / 0.5886 GB Notification: Performance of NFPackage.collectConstants: time 2.828e-05/0.005052, allocations: 20 kB / 0.6215 GB, free: 10.15 MB / 0.5886 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001215/0.005174, allocations: 87.92 kB / 0.6216 GB, free: 10.07 MB / 0.5886 GB Notification: Performance of NFScalarize.scalarize: time 7.528e-05/0.005249, allocations: 67.77 kB / 0.6217 GB, free: 10 MB / 0.5886 GB Notification: Performance of NFVerifyModel.verify: time 6.09e-05/0.00531, allocations: 63.77 kB / 0.6218 GB, free: 9.938 MB / 0.5886 GB Notification: Performance of NFConvertDAE.convert: time 0.0003026/0.005613, allocations: 331 kB / 0.6221 GB, free: 9.613 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 1.913e-06/0.005615, allocations: 0 / 0.6221 GB, free: 9.613 MB / 0.5886 GB Notification: Performance of FrontEnd: time 1.533e-06/0.005616, allocations: 0 / 0.6221 GB, free: 9.613 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 4.88e-06/0.005621, allocations: 0 / 0.6221 GB, free: 9.613 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.0006425/0.006264, allocations: 0.5103 MB / 0.6226 GB, free: 9.066 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 3.722e-05/0.006301, allocations: 9.469 kB / 0.6226 GB, free: 9.059 MB / 0.5886 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.931e-05/0.00634, allocations: 50.73 kB / 0.6226 GB, free: 9 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.872e-05/0.006389, allocations: 28.75 kB / 0.6227 GB, free: 8.973 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003844/0.006773, allocations: 248.8 kB / 0.6229 GB, free: 8.707 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.329e-05/0.006796, allocations: 12.38 kB / 0.6229 GB, free: 8.695 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.67e-05/0.006823, allocations: 12.38 kB / 0.6229 GB, free: 8.684 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003196/0.007143, allocations: 312.8 kB / 0.6232 GB, free: 8.336 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.386e-06/0.007151, allocations: 192 / 0.6232 GB, free: 8.336 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.707e-05/0.007168, allocations: 7.938 kB / 0.6232 GB, free: 8.328 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.094e-06/0.007175, allocations: 4 kB / 0.6232 GB, free: 8.324 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001836/0.007359, allocations: 159 kB / 0.6234 GB, free: 8.164 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006/0.007959, allocations: 0.6098 MB / 0.624 GB, free: 7.504 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002366/0.008195, allocations: 184.3 kB / 0.6241 GB, free: 7.309 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001033/0.008299, allocations: 118.5 kB / 0.6243 GB, free: 7.184 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 1.24e-05/0.008311, allocations: 7.938 kB / 0.6243 GB, free: 7.176 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002122/0.008523, allocations: 210.7 kB / 0.6245 GB, free: 6.945 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=15): time 1.423e-06/0.008525, allocations: 0 / 0.6245 GB, free: 6.945 MB / 0.5886 GB Notification: Performance of matching and sorting (n=15): time 0.0004554/0.00898, allocations: 438.4 kB / 0.6249 GB, free: 6.492 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.482e-05/0.009035, allocations: 136.5 kB / 0.625 GB, free: 6.328 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001972/0.009232, allocations: 277.8 kB / 0.6253 GB, free: 6.043 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 1.958e-05/0.009252, allocations: 33.69 kB / 0.6253 GB, free: 6.004 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 8.718e-05/0.009339, allocations: 164.4 kB / 0.6255 GB, free: 5.84 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 2.707e-05/0.009366, allocations: 39.64 kB / 0.6255 GB, free: 5.801 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.123e-05/0.009417, allocations: 41.7 kB / 0.6255 GB, free: 5.754 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 8.806e-05/0.009505, allocations: 342.8 kB / 0.6259 GB, free: 5.41 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001254/0.009631, allocations: 121.6 kB / 0.626 GB, free: 5.285 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001358/0.009766, allocations: 210.2 kB / 0.6262 GB, free: 5.043 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001995/0.009966, allocations: 249 kB / 0.6264 GB, free: 4.777 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.009968, allocations: 4 kB / 0.6264 GB, free: 4.773 MB / 0.5886 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003168/0.01029, allocations: 386.4 kB / 0.6268 GB, free: 4.383 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 3.17e-05/0.01032, allocations: 33.7 kB / 0.6268 GB, free: 4.344 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-06/0.01032, allocations: 0 / 0.6268 GB, free: 4.344 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.416e-05/0.01034, allocations: 0 / 0.6268 GB, free: 4.344 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.826e-05/0.01042, allocations: 27.92 kB / 0.6269 GB, free: 4.316 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.55e-06/0.01043, allocations: 0 / 0.6269 GB, free: 4.316 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.151e-05/0.0105, allocations: 27.88 kB / 0.6269 GB, free: 4.289 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.2e-05/0.01051, allocations: 12.09 kB / 0.6269 GB, free: 4.277 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.0001225/0.01064, allocations: 195.7 kB / 0.6271 GB, free: 4.074 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.44e-05/0.01066, allocations: 31.81 kB / 0.6271 GB, free: 4.043 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.4e-05/0.01069, allocations: 29.77 kB / 0.6271 GB, free: 4.012 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.345e-06/0.0107, allocations: 0 / 0.6271 GB, free: 4.012 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.0107, allocations: 0 / 0.6271 GB, free: 4.012 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.889e-06/0.01071, allocations: 3.984 kB / 0.6271 GB, free: 4.008 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001589/0.01087, allocations: 232.6 kB / 0.6274 GB, free: 3.738 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.557e-06/0.01087, allocations: 11.92 kB / 0.6274 GB, free: 3.727 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.124e-05/0.01093, allocations: 23.98 kB / 0.6274 GB, free: 3.703 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.345e-06/0.01093, allocations: 0 / 0.6274 GB, free: 3.703 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.242e-05/0.01094, allocations: 4 kB / 0.6274 GB, free: 3.699 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.01095, allocations: 0 / 0.6274 GB, free: 3.699 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.01095, allocations: 0 / 0.6274 GB, free: 3.699 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004795/0.01143, allocations: 0.5322 MB / 0.6279 GB, free: 3.133 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 2.577e-05/0.01145, allocations: 19.89 kB / 0.6279 GB, free: 3.113 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.575e-05/0.01148, allocations: 4 kB / 0.6279 GB, free: 3.109 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.421e-05/0.01153, allocations: 20.23 kB / 0.628 GB, free: 3.09 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.639e-05/0.0116, allocations: 23.95 kB / 0.628 GB, free: 3.066 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.666e-05/0.01162, allocations: 11.94 kB / 0.628 GB, free: 3.055 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.0001625/0.01178, allocations: 205.2 kB / 0.6282 GB, free: 2.855 MB / 0.5886 GB Notification: Performance of sort global known variables: time 6e-08/0.01178, allocations: 0 / 0.6282 GB, free: 2.855 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0001947/0.01197, allocations: 55.88 kB / 0.6282 GB, free: 2.801 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.0007611/0.01273, allocations: 1.105 MB / 0.6293 GB, free: 1.648 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0003225/0.01306, allocations: 326.6 kB / 0.6296 GB, free: 1.305 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.01306, allocations: 0 / 0.6296 GB, free: 1.305 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.0001327/0.01319, allocations: 185 kB / 0.6298 GB, free: 1.105 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002172/0.01341, allocations: 34.36 kB / 0.6298 GB, free: 1.07 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002314/0.01572, allocations: 2.937 MB / 0.6327 GB, free: 14 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.617e-05/0.01582, allocations: 140.8 kB / 0.6329 GB, free: 13.84 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 6.987e-05/0.01589, allocations: 21.48 kB / 0.6329 GB, free: 13.82 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.529e-05/0.01597, allocations: 72.47 kB / 0.6329 GB, free: 13.75 MB / 0.6042 GB Notification: Performance of SimCode: time 9.22e-07/0.01597, allocations: 0 / 0.6329 GB, free: 13.75 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02311/0.03909, allocations: 6.224 MB / 0.639 GB, free: 7.727 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.039/7.078, allocations: 8.328 kB / 0.639 GB, free: 7.723 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 & python3 -m fmpy simulate --output-file IDEAS_dev_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor_res.csv --start-time 0 --stop-time 600 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.24 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.95824748184532] Failed to read output from testmodel.py, exit status != 0: 7.1621217504143715 7.175534432 7.167783471 Calling exit ...