Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_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.0008092/0.0008092, 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.0008433/0.0008433, allocations: 165.9 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.876/0.876, allocations: 177.1 MB / 202.8 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/package.mo", uses=false) [Timeout 180] "[/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Examples/PPD12/Structure.mo:531:21-531:686:writable] Warning: Lexer treating \\ as \\\\, since \\e is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Examples/PPD12/Structure.mo:531:21-531:694:writable] Warning: Lexer treating \\ as \\\\, since \\< is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Media/Refrigerants/R410A/package.order:0:0-0:0:readonly] Warning: Found duplicate names in package.order file: A, B, C. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Media/Refrigerants/R410A/package.mo:2:1-70:10:writable] Warning: C was referenced in the package.order file, but was not found in package.mo, C/package.mo or C.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/package.mo): time 0.7156/0.7156, allocations: 154.6 MB / 413.8 MB, free: 0.8047 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/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 4.0.0/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 4.0.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(IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="IDEAS_IDEAS_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="IDEAS_IDEAS_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.583e-06/1.583e-06, allocations: 0 / 0.6181 GB, free: 13.65 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.579e-05/1.737e-05, allocations: 5.234 kB / 0.6181 GB, free: 13.64 MB / 0.5886 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.002359/0.002376, allocations: 1.932 MB / 0.62 GB, free: 11.71 MB / 0.5886 GB Notification: Performance of NFInst.instExpressions: time 0.0009134/0.00329, allocations: 0.705 MB / 0.6207 GB, free: 11 MB / 0.5886 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.396e-05/0.003384, allocations: 3.938 kB / 0.6207 GB, free: 10.99 MB / 0.5886 GB Notification: Performance of NFTyping.typeComponents: time 0.0002125/0.003596, allocations: 79.69 kB / 0.6207 GB, free: 10.91 MB / 0.5886 GB Notification: Performance of NFTyping.typeBindings: time 9.699e-05/0.003693, allocations: 91.52 kB / 0.6208 GB, free: 10.82 MB / 0.5886 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004967/0.00419, allocations: 191.5 kB / 0.621 GB, free: 10.64 MB / 0.5886 GB Notification: Performance of NFFlatten.flatten: time 0.000276/0.004466, allocations: 259.4 kB / 0.6213 GB, free: 10.38 MB / 0.5886 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001437/0.00461, allocations: 54.11 kB / 0.6213 GB, free: 10.32 MB / 0.5886 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001601/0.00477, allocations: 147.7 kB / 0.6215 GB, free: 10.18 MB / 0.5886 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001687/0.004938, allocations: 139.7 kB / 0.6216 GB, free: 10.04 MB / 0.5886 GB Notification: Performance of NFPackage.collectConstants: time 3.237e-05/0.004971, allocations: 20 kB / 0.6216 GB, free: 10.02 MB / 0.5886 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001203/0.005091, allocations: 95.86 kB / 0.6217 GB, free: 9.93 MB / 0.5886 GB Notification: Performance of NFScalarize.scalarize: time 7.333e-05/0.005164, allocations: 67.77 kB / 0.6218 GB, free: 9.863 MB / 0.5886 GB Notification: Performance of NFVerifyModel.verify: time 6.507e-05/0.005229, allocations: 59.78 kB / 0.6218 GB, free: 9.805 MB / 0.5886 GB Notification: Performance of NFConvertDAE.convert: time 0.0003036/0.005533, allocations: 331 kB / 0.6221 GB, free: 9.48 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 2.465e-06/0.005535, allocations: 0 / 0.6221 GB, free: 9.48 MB / 0.5886 GB Notification: Performance of FrontEnd: time 1.082e-06/0.005537, allocations: 0 / 0.6221 GB, free: 9.48 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 4.518e-06/0.005541, allocations: 0 / 0.6221 GB, free: 9.48 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.000589/0.00613, allocations: 0.5102 MB / 0.6226 GB, free: 8.934 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 3.319e-05/0.006163, allocations: 8.031 kB / 0.6226 GB, free: 8.926 MB / 0.5886 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.657e-05/0.0062, allocations: 50.73 kB / 0.6227 GB, free: 8.867 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.312e-05/0.006243, allocations: 36.69 kB / 0.6227 GB, free: 8.832 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003332/0.006576, allocations: 244.9 kB / 0.623 GB, free: 8.57 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.735e-05/0.006594, allocations: 12.38 kB / 0.623 GB, free: 8.559 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.459e-05/0.006618, allocations: 12.38 kB / 0.623 GB, free: 8.547 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002847/0.006903, allocations: 308.9 kB / 0.6233 GB, free: 8.203 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.334e-06/0.00691, allocations: 192 / 0.6233 GB, free: 8.203 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.489e-05/0.006925, allocations: 7.938 kB / 0.6233 GB, free: 8.195 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.46e-06/0.006931, allocations: 7.938 kB / 0.6233 GB, free: 8.188 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001649/0.007096, allocations: 159 kB / 0.6234 GB, free: 8.027 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005885/0.007684, allocations: 0.6098 MB / 0.624 GB, free: 7.367 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002256/0.00791, allocations: 184.2 kB / 0.6242 GB, free: 7.172 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001051/0.008015, allocations: 118.7 kB / 0.6243 GB, free: 7.047 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 1.272e-05/0.008028, allocations: 7.938 kB / 0.6243 GB, free: 7.039 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001942/0.008222, allocations: 202.8 kB / 0.6245 GB, free: 6.816 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=15): time 1.613e-06/0.008223, allocations: 0 / 0.6245 GB, free: 6.816 MB / 0.5886 GB Notification: Performance of matching and sorting (n=15): time 0.0004464/0.00867, allocations: 449.3 kB / 0.625 GB, free: 6.355 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.973e-05/0.008719, allocations: 136.5 kB / 0.6251 GB, free: 6.191 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001775/0.008897, allocations: 281.8 kB / 0.6254 GB, free: 5.91 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 1.725e-05/0.008914, allocations: 29.7 kB / 0.6254 GB, free: 5.875 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 7.749e-05/0.008992, allocations: 160.4 kB / 0.6255 GB, free: 5.715 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 2.673e-05/0.009018, allocations: 39.64 kB / 0.6256 GB, free: 5.676 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.874e-05/0.009067, allocations: 41.7 kB / 0.6256 GB, free: 5.629 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 8.181e-05/0.009149, allocations: 338.8 kB / 0.6259 GB, free: 5.289 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001076/0.009257, allocations: 117.7 kB / 0.626 GB, free: 5.168 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001392/0.009396, allocations: 214.1 kB / 0.6263 GB, free: 4.922 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001942/0.00959, allocations: 248.6 kB / 0.6265 GB, free: 4.656 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.009592, allocations: 4 kB / 0.6265 GB, free: 4.652 MB / 0.5886 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003068/0.009899, allocations: 381.2 kB / 0.6269 GB, free: 4.266 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 2.931e-05/0.009928, allocations: 41.69 kB / 0.6269 GB, free: 4.219 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.258e-06/0.009932, allocations: 4.094 kB / 0.6269 GB, free: 4.215 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.011e-05/0.009943, allocations: 0 / 0.6269 GB, free: 4.215 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.31e-05/0.01003, allocations: 31.91 kB / 0.6269 GB, free: 4.184 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.218e-06/0.01003, allocations: 0 / 0.6269 GB, free: 4.184 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.77e-05/0.0101, allocations: 27.88 kB / 0.627 GB, free: 4.156 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.053e-05/0.01011, allocations: 4 kB / 0.627 GB, free: 4.152 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.0001173/0.01023, allocations: 199.8 kB / 0.6272 GB, free: 3.945 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.321e-05/0.01025, allocations: 27.81 kB / 0.6272 GB, free: 3.918 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.787e-05/0.01029, allocations: 37.77 kB / 0.6272 GB, free: 3.879 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.01029, allocations: 0 / 0.6272 GB, free: 3.879 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.01029, allocations: 0 / 0.6272 GB, free: 3.879 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.635e-06/0.01029, allocations: 0 / 0.6272 GB, free: 3.879 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000162/0.01046, allocations: 236.6 kB / 0.6274 GB, free: 3.605 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.01046, allocations: 4 kB / 0.6274 GB, free: 3.602 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.561e-05/0.01051, allocations: 12 kB / 0.6275 GB, free: 3.59 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.513e-06/0.01052, allocations: 0 / 0.6275 GB, free: 3.59 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.275e-05/0.01053, allocations: 7.984 kB / 0.6275 GB, free: 3.582 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.01053, allocations: 4 kB / 0.6275 GB, free: 3.578 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.01053, allocations: 4 kB / 0.6275 GB, free: 3.574 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000457/0.01099, allocations: 0.5291 MB / 0.628 GB, free: 3.008 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 2.079e-05/0.01101, allocations: 19.94 kB / 0.628 GB, free: 2.988 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.622e-05/0.01104, allocations: 11.94 kB / 0.628 GB, free: 2.977 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.283e-05/0.01109, allocations: 15.98 kB / 0.628 GB, free: 2.961 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.442e-05/0.01114, allocations: 23.95 kB / 0.6281 GB, free: 2.938 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.494e-05/0.01116, allocations: 8 kB / 0.6281 GB, free: 2.93 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.0001252/0.01128, allocations: 205.1 kB / 0.6283 GB, free: 2.73 MB / 0.5886 GB Notification: Performance of sort global known variables: time 8e-08/0.01128, allocations: 4.062 kB / 0.6283 GB, free: 2.727 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0001903/0.01147, allocations: 59.86 kB / 0.6283 GB, free: 2.668 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.0006946/0.01217, allocations: 1.096 MB / 0.6294 GB, free: 1.527 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0003103/0.01248, allocations: 322.9 kB / 0.6297 GB, free: 1.188 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.232e-06/0.01248, allocations: 4 kB / 0.6297 GB, free: 1.184 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.0001353/0.01261, allocations: 189 kB / 0.6299 GB, free: 0.9805 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002033/0.01282, allocations: 30.36 kB / 0.6299 GB, free: 0.9492 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002238/0.01506, allocations: 2.941 MB / 0.6328 GB, free: 13.88 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.547e-05/0.01514, allocations: 136.8 kB / 0.6329 GB, free: 13.72 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 6.273e-05/0.0152, allocations: 25.47 kB / 0.6329 GB, free: 13.7 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.255e-05/0.01529, allocations: 68.48 kB / 0.633 GB, free: 13.63 MB / 0.6042 GB Notification: Performance of SimCode: time 6.01e-07/0.01529, allocations: 0 / 0.633 GB, free: 13.63 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02115/0.03644, allocations: 6.22 MB / 0.6391 GB, free: 7.613 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.681/6.718, allocations: 7.875 kB / 0.6391 GB, free: 7.605 MB / 0.6042 GB " [Timeout remaining time 653] (rm -f IDEAS_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo IDEAS_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/IDEAS_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Fluid_Actuators_Motors_Examples_IdealMotor_fmu --startTime=0 --stopTime=600 --stepSize=0.24 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Fluid_Actuators_Motors_Examples_IdealMotor.fmu > IDEAS_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.347574135288596] Failed to read output from testmodel.py, exit status != 0: 6.803309208713472 6.815109434 6.805571201 Calling exit ...