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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor") translateModel(IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009853/0.0009853, allocations: 91.84 kB / 15.06 MB, free: 1.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001334/0.001334, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.549/1.549, allocations: 223.3 MB / 240 MB, free: 5.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 1.043/1.043, allocations: 135.3 MB / 426.4 MB, free: 14.34 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004235/0.0004237, allocations: 11.94 kB / 0.507 GB, free: 5.164 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2069/0.2074, allocations: 82.31 MB / 0.5874 GB, free: 3.031 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.002276/0.2097, allocations: 1.604 MB / 0.5889 GB, free: 1.406 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001148/0.2109, allocations: 0.655 MB / 0.5896 GB, free: 0.75 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001098/0.211, allocations: 4 kB / 0.5896 GB, free: 0.7461 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002222/0.2112, allocations: 71.77 kB / 0.5896 GB, free: 0.6758 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001112/0.2114, allocations: 91.67 kB / 0.5897 GB, free: 0.5859 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005009/0.2119, allocations: 123.8 kB / 0.5899 GB, free: 476 kB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002469/0.2121, allocations: 215.5 kB / 0.5901 GB, free: 260 kB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00018/0.2123, allocations: 49.64 kB / 0.5901 GB, free: 212 kB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001309/0.2124, allocations: 95.66 kB / 0.5902 GB, free: 116 kB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001906/0.2126, allocations: 115.5 kB / 0.5903 GB, free: 0 / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 4.653e-05/0.2127, allocations: 8.047 kB / 0.5903 GB, free: 15.99 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001312/0.2128, allocations: 71.89 kB / 0.5904 GB, free: 15.92 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 6.271e-05/0.2129, allocations: 43.83 kB / 0.5904 GB, free: 15.88 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 6.346e-05/0.213, allocations: 61.58 kB / 0.5905 GB, free: 15.81 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002528/0.2132, allocations: 219.7 kB / 0.5907 GB, free: 15.6 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.11e-06/0.2133, allocations: 0 / 0.5907 GB, free: 15.6 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.074e-06/0.2133, allocations: 0 / 0.5907 GB, free: 15.6 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.32e-06/0.2133, allocations: 0 / 0.5907 GB, free: 15.6 MB / 0.4981 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.0007673/0.214, allocations: 0.5507 MB / 0.5912 GB, free: 14.99 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.856e-05/0.2141, allocations: 8.031 kB / 0.5912 GB, free: 14.98 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.886e-05/0.2142, allocations: 35.62 kB / 0.5913 GB, free: 14.95 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004236/0.2146, allocations: 305.5 kB / 0.5916 GB, free: 14.61 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.294e-05/0.2146, allocations: 12 kB / 0.5916 GB, free: 14.6 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.926e-05/0.2146, allocations: 12 kB / 0.5916 GB, free: 14.59 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003775/0.215, allocations: 227.9 kB / 0.5918 GB, free: 14.34 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.019e-05/0.2151, allocations: 0 / 0.5918 GB, free: 14.34 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.289e-05/0.2151, allocations: 11.98 kB / 0.5918 GB, free: 14.33 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.235e-06/0.2151, allocations: 4 kB / 0.5918 GB, free: 14.32 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002405/0.2153, allocations: 128.4 kB / 0.5919 GB, free: 14.2 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009217/0.2163, allocations: 0.6962 MB / 0.5926 GB, free: 13.45 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003501/0.2167, allocations: 178.5 kB / 0.5928 GB, free: 13.26 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001822/0.2168, allocations: 105 kB / 0.5929 GB, free: 13.16 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.995e-05/0.2169, allocations: 11.97 kB / 0.5929 GB, free: 13.14 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003184/0.2172, allocations: 169 kB / 0.5931 GB, free: 12.96 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=15): time 1.443e-06/0.2172, allocations: 0 / 0.5931 GB, free: 12.96 MB / 0.4981 GB Notification: Performance of matching and sorting (n=15): time 0.0006767/0.2179, allocations: 394.3 kB / 0.5934 GB, free: 12.57 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.044e-05/0.218, allocations: 132.5 kB / 0.5936 GB, free: 12.41 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002795/0.2183, allocations: 282.6 kB / 0.5938 GB, free: 12.12 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.494e-05/0.2183, allocations: 25.7 kB / 0.5939 GB, free: 12.09 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001254/0.2184, allocations: 164.3 kB / 0.594 GB, free: 11.93 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 4.24e-05/0.2185, allocations: 43.3 kB / 0.5941 GB, free: 11.89 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.32e-05/0.2185, allocations: 8 kB / 0.5941 GB, free: 11.88 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001456/0.2187, allocations: 338.8 kB / 0.5944 GB, free: 11.54 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000156/0.2188, allocations: 84.16 kB / 0.5945 GB, free: 11.46 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001954/0.219, allocations: 143.3 kB / 0.5946 GB, free: 11.3 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000166/0.2192, allocations: 107.7 kB / 0.5947 GB, free: 11.19 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.448e-06/0.2192, allocations: 3.938 kB / 0.5947 GB, free: 11.19 MB / 0.4981 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005062/0.2197, allocations: 346.9 kB / 0.595 GB, free: 10.84 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 4.817e-05/0.2198, allocations: 39.56 kB / 0.5951 GB, free: 10.79 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.163e-06/0.2198, allocations: 0 / 0.5951 GB, free: 10.79 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.825e-05/0.2198, allocations: 4 kB / 0.5951 GB, free: 10.79 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001331/0.22, allocations: 28.08 kB / 0.5951 GB, free: 10.76 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.055e-06/0.22, allocations: 7.938 kB / 0.5951 GB, free: 10.75 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000112/0.2201, allocations: 27.83 kB / 0.5951 GB, free: 10.73 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.78e-05/0.2201, allocations: 8 kB / 0.5952 GB, free: 10.72 MB / 0.4981 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 ($whenCondition1,$PRE.mot.uppHys.y,mot.uppHys.y,$PRE.mot.lowHys.y,mot.lowHys.y,ySet.a,ySet.b,ySet.last,$PRE.ySet.nextEvent,ySet.nextEvent,ySet.nextEventScaled,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000209/0.2203, allocations: 194.7 kB / 0.5953 GB, free: 10.52 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.534e-05/0.2204, allocations: 23.72 kB / 0.5954 GB, free: 10.49 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.117e-05/0.2205, allocations: 29.83 kB / 0.5954 GB, free: 10.46 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.86e-05/0.2205, allocations: 4 kB / 0.5954 GB, free: 10.45 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.338e-06/0.2205, allocations: 0 / 0.5954 GB, free: 10.45 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.699e-06/0.2205, allocations: 0 / 0.5954 GB, free: 10.45 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002666/0.2208, allocations: 289.4 kB / 0.5957 GB, free: 10.12 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.417e-06/0.2208, allocations: 3.953 kB / 0.5957 GB, free: 10.12 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001046/0.2209, allocations: 27.92 kB / 0.5957 GB, free: 10.09 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.004e-06/0.2209, allocations: 0 / 0.5957 GB, free: 10.09 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.815e-05/0.2209, allocations: 4 kB / 0.5957 GB, free: 10.09 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.2209, allocations: 0 / 0.5957 GB, free: 10.09 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.221, allocations: 4 kB / 0.5957 GB, free: 10.08 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007014/0.2217, allocations: 470.3 kB / 0.5962 GB, free: 9.598 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 7.183e-05/0.2217, allocations: 104.9 kB / 0.5963 GB, free: 9.477 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.134e-05/0.2218, allocations: 8.188 kB / 0.5963 GB, free: 9.469 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.778e-05/0.2219, allocations: 15.98 kB / 0.5963 GB, free: 9.453 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.463e-05/0.222, allocations: 35.83 kB / 0.5963 GB, free: 9.418 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.344e-05/0.222, allocations: 7.984 kB / 0.5963 GB, free: 9.41 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001991/0.2222, allocations: 198 kB / 0.5965 GB, free: 9.219 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2222, allocations: 4 kB / 0.5965 GB, free: 9.215 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002852/0.2225, allocations: 63.95 kB / 0.5966 GB, free: 9.152 MB / 0.4981 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002136/0.2228, allocations: 131.1 kB / 0.5967 GB, free: 9.02 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004886/0.2233, allocations: 299.2 kB / 0.597 GB, free: 8.715 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 4.238e-06/0.2233, allocations: 4.188 kB / 0.597 GB, free: 8.711 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002328/0.2235, allocations: 187.3 kB / 0.5972 GB, free: 8.516 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003143/0.2238, allocations: 32.55 kB / 0.5972 GB, free: 8.484 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001005/0.2248, allocations: 0.5108 MB / 0.5977 GB, free: 7.949 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003941/0.2252, allocations: 0.7558 MB / 0.5984 GB, free: 7.168 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0001007/0.2254, allocations: 25.53 kB / 0.5985 GB, free: 7.141 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.74e-05/0.2254, allocations: 15.44 kB / 0.5985 GB, free: 7.125 MB / 0.4981 GB Notification: Performance of SimCode: time 7.21e-07/0.2254, allocations: 0 / 0.5985 GB, free: 7.125 MB / 0.4981 GB Notification: Performance of Templates: time 0.00602/0.2314, allocations: 2.453 MB / 0.6009 GB, free: 4.695 MB / 0.4981 GB make -j1 -f IDEAS_dev_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor.makefile (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 & ./IDEAS_dev_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_dev_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1)