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.0008362/0.0008365, allocations: 92.23 kB / 15.36 MB, free: 0.7383 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.01076/0.01076, allocations: 169.8 kB / 16.26 MB, free: 6.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.525/1.525, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 1.09/1.09, allocations: 135.3 MB / 426.7 MB, free: 14.19 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003107/0.0003108, allocations: 11.98 kB / 0.5076 GB, free: 4.766 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1924/0.1927, allocations: 82.3 MB / 0.588 GB, free: 2.629 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.002328/0.1951, allocations: 1.65 MB / 0.5896 GB, free: 0.957 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001296/0.1964, allocations: 0.7015 MB / 0.5903 GB, free: 260 kB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001028/0.1965, allocations: 3.938 kB / 0.5903 GB, free: 256 kB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002194/0.1968, allocations: 75.75 kB / 0.5903 GB, free: 180 kB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001194/0.1969, allocations: 79.7 kB / 0.5904 GB, free: 100 kB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005407/0.1974, allocations: 162.8 kB / 0.5906 GB, free: 15.94 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0002941/0.1977, allocations: 239.5 kB / 0.5908 GB, free: 15.71 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001794/0.1979, allocations: 66.11 kB / 0.5909 GB, free: 15.64 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001392/0.1981, allocations: 91.59 kB / 0.5909 GB, free: 15.55 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001885/0.1983, allocations: 131.5 kB / 0.5911 GB, free: 15.43 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 2.567e-05/0.1983, allocations: 8 kB / 0.5911 GB, free: 15.42 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001525/0.1985, allocations: 75.88 kB / 0.5912 GB, free: 15.34 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 7.908e-05/0.1986, allocations: 47.81 kB / 0.5912 GB, free: 15.3 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001122/0.1987, allocations: 117 kB / 0.5913 GB, free: 15.18 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0003447/0.199, allocations: 275.1 kB / 0.5916 GB, free: 14.91 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.199, allocations: 0 / 0.5916 GB, free: 14.91 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.543e-06/0.199, allocations: 0 / 0.5916 GB, free: 14.91 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.72e-06/0.1991, allocations: 0 / 0.5916 GB, free: 14.91 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.0008794/0.1999, allocations: 0.547 MB / 0.5921 GB, free: 14.3 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.311e-05/0.2, allocations: 12.03 kB / 0.5921 GB, free: 14.29 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.956e-05/0.2001, allocations: 28.56 kB / 0.5921 GB, free: 14.27 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005025/0.2006, allocations: 314.8 kB / 0.5924 GB, free: 13.92 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.566e-05/0.2006, allocations: 12.38 kB / 0.5925 GB, free: 13.91 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.151e-05/0.2007, allocations: 19.94 kB / 0.5925 GB, free: 13.89 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004116/0.2011, allocations: 223.9 kB / 0.5927 GB, free: 13.64 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.486e-06/0.2011, allocations: 0 / 0.5927 GB, free: 13.64 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.265e-05/0.2011, allocations: 8 kB / 0.5927 GB, free: 13.64 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.265e-06/0.2011, allocations: 7.938 kB / 0.5927 GB, free: 13.63 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002589/0.2014, allocations: 132.3 kB / 0.5928 GB, free: 13.5 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009142/0.2023, allocations: 0.6924 MB / 0.5935 GB, free: 12.75 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003974/0.2027, allocations: 178.6 kB / 0.5937 GB, free: 12.57 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001712/0.2029, allocations: 104.8 kB / 0.5938 GB, free: 12.46 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.456e-05/0.2029, allocations: 7.984 kB / 0.5938 GB, free: 12.45 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003219/0.2033, allocations: 169 kB / 0.5939 GB, free: 12.27 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=15): time 1.423e-06/0.2033, allocations: 0 / 0.5939 GB, free: 12.27 MB / 0.4981 GB Notification: Performance of matching and sorting (n=15): time 0.0006888/0.204, allocations: 394.7 kB / 0.5943 GB, free: 11.88 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.259e-05/0.2041, allocations: 136.5 kB / 0.5945 GB, free: 11.71 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003004/0.2044, allocations: 278.6 kB / 0.5947 GB, free: 11.43 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.029e-05/0.2044, allocations: 33.7 kB / 0.5948 GB, free: 11.39 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001159/0.2045, allocations: 160.1 kB / 0.5949 GB, free: 11.23 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 5.329e-05/0.2046, allocations: 43.45 kB / 0.5949 GB, free: 11.19 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.029e-05/0.2046, allocations: 25.7 kB / 0.595 GB, free: 11.16 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001468/0.2048, allocations: 338.8 kB / 0.5953 GB, free: 10.82 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001801/0.205, allocations: 87.95 kB / 0.5954 GB, free: 10.73 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001953/0.2052, allocations: 141.2 kB / 0.5955 GB, free: 10.58 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003567/0.2055, allocations: 253 kB / 0.5958 GB, free: 10.31 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.23e-06/0.2056, allocations: 0 / 0.5958 GB, free: 10.31 MB / 0.4981 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005313/0.2061, allocations: 346.8 kB / 0.5961 GB, free: 9.961 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 4.216e-05/0.2061, allocations: 41.78 kB / 0.5961 GB, free: 9.914 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.492e-06/0.2062, allocations: 4 kB / 0.5961 GB, free: 9.91 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.252e-05/0.2062, allocations: 0 / 0.5961 GB, free: 9.91 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001301/0.2063, allocations: 23.98 kB / 0.5962 GB, free: 9.887 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.275e-06/0.2063, allocations: 4 kB / 0.5962 GB, free: 9.883 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001284/0.2065, allocations: 31.77 kB / 0.5962 GB, free: 9.852 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.57e-05/0.2065, allocations: 8 kB / 0.5962 GB, free: 9.844 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 (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.0001895/0.2067, allocations: 202.7 kB / 0.5964 GB, free: 9.633 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.045e-05/0.2067, allocations: 23.72 kB / 0.5964 GB, free: 9.609 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.177e-05/0.2068, allocations: 25.83 kB / 0.5964 GB, free: 9.578 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.478e-06/0.2068, allocations: 4 kB / 0.5964 GB, free: 9.574 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.141e-06/0.2068, allocations: 0 / 0.5964 GB, free: 9.574 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.871e-06/0.2069, allocations: 3.938 kB / 0.5964 GB, free: 9.57 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002762/0.2071, allocations: 289.5 kB / 0.5967 GB, free: 9.238 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.2071, allocations: 0 / 0.5967 GB, free: 9.238 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001028/0.2073, allocations: 19.98 kB / 0.5967 GB, free: 9.219 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.198e-06/0.2073, allocations: 4 kB / 0.5967 GB, free: 9.215 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.908e-05/0.2073, allocations: 4.094 kB / 0.5967 GB, free: 9.211 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.208e-06/0.2073, allocations: 7.938 kB / 0.5968 GB, free: 9.203 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.776e-06/0.2073, allocations: 3.938 kB / 0.5968 GB, free: 9.199 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007552/0.2081, allocations: 478.3 kB / 0.5972 GB, free: 8.707 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 7.289e-05/0.2081, allocations: 100.9 kB / 0.5973 GB, free: 8.59 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.972e-05/0.2082, allocations: 4 kB / 0.5973 GB, free: 8.586 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001129/0.2083, allocations: 19.98 kB / 0.5973 GB, free: 8.566 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.054e-05/0.2084, allocations: 19.95 kB / 0.5973 GB, free: 8.547 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.19e-05/0.2084, allocations: 16 kB / 0.5974 GB, free: 8.531 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001989/0.2086, allocations: 202 kB / 0.5976 GB, free: 8.336 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2086, allocations: 0 / 0.5976 GB, free: 8.336 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002796/0.2089, allocations: 63.83 kB / 0.5976 GB, free: 8.273 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 (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.0002044/0.2091, allocations: 135.1 kB / 0.5977 GB, free: 8.133 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004849/0.2096, allocations: 303.2 kB / 0.598 GB, free: 7.824 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.2096, allocations: 0 / 0.598 GB, free: 7.824 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002372/0.2099, allocations: 187.3 kB / 0.5982 GB, free: 7.629 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003208/0.2102, allocations: 32.73 kB / 0.5982 GB, free: 7.598 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001026/0.2113, allocations: 0.534 MB / 0.5988 GB, free: 7.039 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003291/0.2116, allocations: 0.7478 MB / 0.5995 GB, free: 6.266 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 8.949e-05/0.2117, allocations: 21.53 kB / 0.5995 GB, free: 6.242 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.61e-05/0.2117, allocations: 19.44 kB / 0.5995 GB, free: 6.223 MB / 0.4981 GB Notification: Performance of SimCode: time 2.4e-07/0.2117, allocations: 0 / 0.5995 GB, free: 6.223 MB / 0.4981 GB Notification: Performance of Templates: time 0.0065/0.2183, allocations: 2.523 MB / 0.602 GB, free: 3.727 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)