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: "" <> 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009304/0.0009304, allocations: 86.64 kB / 15.06 MB, free: 1.09 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.0008914/0.0008915, allocations: 168.7 kB / 15.95 MB, free: 204 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.508/1.508, allocations: 223.2 MB / 240 MB, free: 5.371 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 1.211/1.211, allocations: 135.3 MB / 426.4 MB, free: 14.26 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003566/0.0003567, allocations: 8 kB / 0.5071 GB, free: 5 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2133/0.2137, allocations: 82.32 MB / 0.5875 GB, free: 2.859 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.00315/0.2169, allocations: 1.6 MB / 0.589 GB, free: 1.238 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001689/0.2186, allocations: 0.655 MB / 0.5897 GB, free: 0.582 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001728/0.2188, allocations: 4 kB / 0.5897 GB, free: 0.5781 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002794/0.2191, allocations: 71.75 kB / 0.5897 GB, free: 0.5078 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001557/0.2193, allocations: 83.69 kB / 0.5898 GB, free: 436 kB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006682/0.22, allocations: 131.8 kB / 0.59 GB, free: 304 kB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003463/0.2203, allocations: 219.5 kB / 0.5902 GB, free: 84 kB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001951/0.2205, allocations: 49.94 kB / 0.5902 GB, free: 36 kB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002058/0.2208, allocations: 91.66 kB / 0.5903 GB, free: 15.95 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002529/0.221, allocations: 115.5 kB / 0.5904 GB, free: 15.83 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 3.286e-05/0.2211, allocations: 8 kB / 0.5904 GB, free: 15.82 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001675/0.2212, allocations: 63.94 kB / 0.5905 GB, free: 15.76 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 8.953e-05/0.2213, allocations: 43.83 kB / 0.5905 GB, free: 15.72 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 8.628e-05/0.2214, allocations: 65.58 kB / 0.5906 GB, free: 15.65 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0003005/0.2217, allocations: 215.5 kB / 0.5908 GB, free: 15.44 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 1.056e-05/0.2218, allocations: 0 / 0.5908 GB, free: 15.44 MB / 0.4981 GB Notification: Performance of FrontEnd: time 3.757e-06/0.2218, allocations: 0 / 0.5908 GB, free: 15.44 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.591e-05/0.2218, allocations: 0 / 0.5908 GB, free: 15.44 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.001058/0.2229, allocations: 0.57 MB / 0.5913 GB, free: 14.81 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 6.177e-05/0.2229, allocations: 8.031 kB / 0.5914 GB, free: 14.8 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.133e-05/0.223, allocations: 50.48 kB / 0.5914 GB, free: 14.75 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.862e-05/0.2231, allocations: 27.72 kB / 0.5914 GB, free: 14.72 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00057/0.2237, allocations: 297.5 kB / 0.5917 GB, free: 14.39 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.46e-05/0.2237, allocations: 12 kB / 0.5917 GB, free: 14.38 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.915e-05/0.2238, allocations: 12 kB / 0.5917 GB, free: 14.36 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004739/0.2242, allocations: 231.9 kB / 0.592 GB, free: 14.11 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.107e-05/0.2243, allocations: 0 / 0.592 GB, free: 14.11 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.199e-05/0.2243, allocations: 4 kB / 0.592 GB, free: 14.11 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.718e-06/0.2243, allocations: 4 kB / 0.592 GB, free: 14.11 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002763/0.2246, allocations: 132.4 kB / 0.5921 GB, free: 13.98 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001143/0.2257, allocations: 0.704 MB / 0.5928 GB, free: 13.21 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004055/0.2262, allocations: 174.5 kB / 0.5929 GB, free: 13.04 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002012/0.2264, allocations: 105 kB / 0.593 GB, free: 12.93 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.29e-05/0.2264, allocations: 8.016 kB / 0.593 GB, free: 12.92 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004694/0.2269, allocations: 173 kB / 0.5932 GB, free: 12.73 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=15): time 2.996e-06/0.2269, allocations: 0 / 0.5932 GB, free: 12.73 MB / 0.4981 GB Notification: Performance of matching and sorting (n=15): time 0.0008216/0.2277, allocations: 386.2 kB / 0.5936 GB, free: 12.35 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001308/0.2279, allocations: 132.5 kB / 0.5937 GB, free: 12.19 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003345/0.2282, allocations: 282.6 kB / 0.594 GB, free: 11.91 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.066e-05/0.2283, allocations: 29.7 kB / 0.594 GB, free: 11.87 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001382/0.2284, allocations: 160.1 kB / 0.5942 GB, free: 11.71 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 5.051e-05/0.2285, allocations: 51.38 kB / 0.5942 GB, free: 11.66 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.36e-05/0.2285, allocations: 4 kB / 0.5942 GB, free: 11.66 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0002177/0.2287, allocations: 342.8 kB / 0.5945 GB, free: 11.31 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001831/0.2289, allocations: 84.14 kB / 0.5946 GB, free: 11.23 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002239/0.2291, allocations: 143.3 kB / 0.5948 GB, free: 11.07 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001905/0.2293, allocations: 107.8 kB / 0.5949 GB, free: 10.96 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.2294, allocations: 3.938 kB / 0.5949 GB, free: 10.96 MB / 0.4981 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005677/0.2299, allocations: 346.7 kB / 0.5952 GB, free: 10.61 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 6e-05/0.23, allocations: 41.69 kB / 0.5952 GB, free: 10.57 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.187e-06/0.23, allocations: 0 / 0.5952 GB, free: 10.57 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.099e-05/0.23, allocations: 4 kB / 0.5952 GB, free: 10.56 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001472/0.2302, allocations: 23.98 kB / 0.5953 GB, free: 10.54 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.245e-05/0.2302, allocations: 3.938 kB / 0.5953 GB, free: 10.54 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001383/0.2304, allocations: 31.92 kB / 0.5953 GB, free: 10.5 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.05e-05/0.2304, allocations: 8 kB / 0.5953 GB, free: 10.5 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.000228/0.2306, allocations: 194.7 kB / 0.5955 GB, free: 10.29 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.963e-05/0.2307, allocations: 23.72 kB / 0.5955 GB, free: 10.27 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001191/0.2308, allocations: 33.92 kB / 0.5955 GB, free: 10.23 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.089e-06/0.2308, allocations: 7.938 kB / 0.5955 GB, free: 10.22 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/0.2308, allocations: 0 / 0.5955 GB, free: 10.22 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.99e-06/0.2308, allocations: 0 / 0.5955 GB, free: 10.22 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000354/0.2312, allocations: 285.4 kB / 0.5958 GB, free: 9.895 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.827e-06/0.2312, allocations: 3.953 kB / 0.5958 GB, free: 9.891 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001076/0.2313, allocations: 19.94 kB / 0.5958 GB, free: 9.871 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.212e-06/0.2313, allocations: 3.984 kB / 0.5958 GB, free: 9.867 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.34e-05/0.2314, allocations: 4 kB / 0.5959 GB, free: 9.863 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.2314, allocations: 0 / 0.5959 GB, free: 9.863 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.2314, allocations: 0 / 0.5959 GB, free: 9.863 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000819/0.2322, allocations: 478.3 kB / 0.5963 GB, free: 9.371 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 8.583e-05/0.2323, allocations: 104.8 kB / 0.5964 GB, free: 9.25 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.549e-05/0.2324, allocations: 12.06 kB / 0.5964 GB, free: 9.238 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001079/0.2325, allocations: 15.98 kB / 0.5964 GB, free: 9.223 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.921e-05/0.2326, allocations: 27.89 kB / 0.5965 GB, free: 9.195 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.393e-05/0.2326, allocations: 4 kB / 0.5965 GB, free: 9.191 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.000225/0.2329, allocations: 205.9 kB / 0.5967 GB, free: 8.992 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.21e-07/0.2329, allocations: 0 / 0.5967 GB, free: 8.992 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003537/0.2332, allocations: 63.97 kB / 0.5967 GB, free: 8.93 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.001285/0.2345, allocations: 1.036 MB / 0.5977 GB, free: 7.859 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0006218/0.2351, allocations: 303.2 kB / 0.598 GB, free: 7.551 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.2352, allocations: 0 / 0.598 GB, free: 7.551 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002505/0.2354, allocations: 191.5 kB / 0.5982 GB, free: 7.352 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003786/0.2358, allocations: 35.48 kB / 0.5982 GB, free: 7.32 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003072/0.2389, allocations: 1.635 MB / 0.5998 GB, free: 5.633 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005337/0.2395, allocations: 0.7558 MB / 0.6006 GB, free: 4.852 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0001331/0.2396, allocations: 21.55 kB / 0.6006 GB, free: 4.832 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001451/0.2398, allocations: 71.78 kB / 0.6007 GB, free: 4.762 MB / 0.4981 GB Notification: Performance of SimCode: time 1.352e-06/0.2398, allocations: 4 kB / 0.6007 GB, free: 4.758 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02281/0.2626, allocations: 4.857 MB / 0.6054 GB, free: 60 kB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.4638/0.7264, allocations: 185.2 kB / 0.6056 GB, free: 52.08 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.989/2.716, allocations: 0 / 0.6056 GB, free: 52.08 MB / 0.4981 GB (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/linux/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Fluid_Actuators_Motors_Examples_IdealMotor_fmu --startTime=0 --stopTime=600 --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) Environment - environmentSimulation: