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.00121/0.00121, allocations: 102.2 kB / 16.35 MB, free: 5.875 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.00128/0.00128, allocations: 194.3 kB / 17.3 MB, free: 5.516 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.273/1.273, allocations: 222.9 MB / 241 MB, free: 15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7555/0.7555, allocations: 135.1 MB / 426.3 MB, free: 4.141 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00125/0.00125, allocations: 63.89 kB / 0.5067 GB, free: 7.676 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3182/0.3195, allocations: 80.92 MB / 0.5858 GB, free: 25.58 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.002831/0.3223, allocations: 1.94 MB / 0.5877 GB, free: 24.07 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001031/0.3234, allocations: 0.7049 MB / 0.5883 GB, free: 23.52 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001371/0.3236, allocations: 6.281 kB / 0.5884 GB, free: 23.52 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002031/0.3238, allocations: 82.7 kB / 0.5884 GB, free: 23.47 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001222/0.3239, allocations: 95.56 kB / 0.5885 GB, free: 23.41 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000543/0.3245, allocations: 189 kB / 0.5887 GB, free: 23.28 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002785/0.3248, allocations: 263.3 kB / 0.589 GB, free: 23.13 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000142/0.3249, allocations: 64.5 kB / 0.589 GB, free: 23.1 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001451/0.3251, allocations: 117.6 kB / 0.5891 GB, free: 23.03 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001672/0.3252, allocations: 150.2 kB / 0.5893 GB, free: 22.91 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.918e-05/0.3253, allocations: 24.44 kB / 0.5893 GB, free: 22.89 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001166/0.3254, allocations: 95.91 kB / 0.5894 GB, free: 22.79 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 5.913e-05/0.3255, allocations: 57.44 kB / 0.5894 GB, free: 22.74 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 7.128e-05/0.3255, allocations: 107.3 kB / 0.5895 GB, free: 22.63 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002591/0.3258, allocations: 310.9 kB / 0.5898 GB, free: 22.33 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.008e-06/0.3258, allocations: 1.188 kB / 0.5898 GB, free: 22.33 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.3258, allocations: 0 / 0.5898 GB, free: 22.33 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.639e-05/0.3259, allocations: 4 kB / 0.5898 GB, free: 22.33 MB / 446.1 MB 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.0006695/0.3265, allocations: 0.5802 MB / 0.5904 GB, free: 21.7 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.003e-05/0.3266, allocations: 9.109 kB / 0.5904 GB, free: 21.69 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.316e-05/0.3266, allocations: 30.88 kB / 0.5904 GB, free: 21.66 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003838/0.327, allocations: 307.9 kB / 0.5907 GB, free: 21.32 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.042e-05/0.3271, allocations: 12.38 kB / 0.5908 GB, free: 21.31 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.817e-05/0.3271, allocations: 19.88 kB / 0.5908 GB, free: 21.29 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002956/0.3274, allocations: 222.4 kB / 0.591 GB, free: 21.05 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.952e-05/0.3274, allocations: 3.938 kB / 0.591 GB, free: 21.05 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.25e-05/0.3275, allocations: 4 kB / 0.591 GB, free: 21.05 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.232e-06/0.3275, allocations: 4 kB / 0.591 GB, free: 21.04 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002009/0.3277, allocations: 129.6 kB / 0.5911 GB, free: 20.92 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005936/0.3283, allocations: 0.6796 MB / 0.5918 GB, free: 20.18 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002687/0.3286, allocations: 164.2 kB / 0.5919 GB, free: 20.02 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001232/0.3287, allocations: 97.7 kB / 0.592 GB, free: 19.92 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.708e-05/0.3287, allocations: 1.719 kB / 0.592 GB, free: 19.92 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002131/0.3289, allocations: 169.1 kB / 0.5922 GB, free: 19.73 MB / 446.1 MB Notification: Performance of pre-optimization done (n=15): time 1.633e-06/0.3289, allocations: 1.469 kB / 0.5922 GB, free: 19.73 MB / 446.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005057/0.3295, allocations: 381.5 kB / 0.5926 GB, free: 19.35 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.742e-05/0.3295, allocations: 137 kB / 0.5927 GB, free: 19.19 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001761/0.3297, allocations: 284.9 kB / 0.593 GB, free: 18.91 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.68e-05/0.3297, allocations: 25.7 kB / 0.593 GB, free: 18.88 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.074e-05/0.3298, allocations: 164.2 kB / 0.5931 GB, free: 18.71 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.55e-05/0.3298, allocations: 39.45 kB / 0.5932 GB, free: 18.67 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.439e-05/0.3299, allocations: 37.72 kB / 0.5932 GB, free: 18.63 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.263e-05/0.3299, allocations: 341.3 kB / 0.5935 GB, free: 18.29 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001281/0.33, allocations: 84.05 kB / 0.5936 GB, free: 18.21 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001337/0.3302, allocations: 145.2 kB / 0.5938 GB, free: 18.05 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002485/0.3304, allocations: 240.5 kB / 0.594 GB, free: 17.8 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.704e-06/0.3305, allocations: 0 / 0.594 GB, free: 17.8 MB / 446.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003753/0.3308, allocations: 340 kB / 0.5943 GB, free: 17.46 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.562e-05/0.3309, allocations: 33.7 kB / 0.5943 GB, free: 17.42 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.079e-06/0.3309, allocations: 0.6875 kB / 0.5943 GB, free: 17.42 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.191e-05/0.3309, allocations: 7.938 kB / 0.5944 GB, free: 17.41 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001054/0.331, allocations: 28.55 kB / 0.5944 GB, free: 17.38 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.262e-06/0.331, allocations: 6.031 kB / 0.5944 GB, free: 17.38 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001043/0.3311, allocations: 31.67 kB / 0.5944 GB, free: 17.35 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.384e-05/0.3312, allocations: 8 kB / 0.5944 GB, free: 17.34 MB / 446.1 MB 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.0001086/0.3313, allocations: 197.4 kB / 0.5946 GB, free: 17.13 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.899e-05/0.3313, allocations: 23.72 kB / 0.5946 GB, free: 17.11 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.235e-05/0.3314, allocations: 31.67 kB / 0.5947 GB, free: 17.08 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.324e-06/0.3314, allocations: 4 kB / 0.5947 GB, free: 17.08 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.587e-06/0.3314, allocations: 0 / 0.5947 GB, free: 17.08 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.447e-06/0.3314, allocations: 3.938 kB / 0.5947 GB, free: 17.07 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000145/0.3315, allocations: 285.5 kB / 0.5949 GB, free: 16.75 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-06/0.3315, allocations: 1.688 kB / 0.5949 GB, free: 16.75 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.953e-05/0.3316, allocations: 15.98 kB / 0.595 GB, free: 16.73 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.405e-06/0.3316, allocations: 0 / 0.595 GB, free: 16.73 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.606e-05/0.3317, allocations: 8 kB / 0.595 GB, free: 16.72 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.512e-06/0.3317, allocations: 0.5 kB / 0.595 GB, free: 16.72 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.3317, allocations: 0.9688 kB / 0.595 GB, free: 16.72 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005469/0.3322, allocations: 478.1 kB / 0.5954 GB, free: 16.23 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.318e-05/0.3323, allocations: 92.86 kB / 0.5955 GB, free: 16.12 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.816e-05/0.3323, allocations: 8 kB / 0.5955 GB, free: 16.12 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.442e-05/0.3324, allocations: 16.52 kB / 0.5955 GB, free: 16.1 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.958e-05/0.3325, allocations: 28.45 kB / 0.5956 GB, free: 16.07 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.13e-05/0.3325, allocations: 10.16 kB / 0.5956 GB, free: 16.07 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001187/0.3326, allocations: 202 kB / 0.5958 GB, free: 15.87 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3326, allocations: 0 / 0.5958 GB, free: 15.87 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002451/0.3329, allocations: 55.98 kB / 0.5958 GB, free: 15.81 MB / 446.1 MB 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.0001336/0.333, allocations: 132 kB / 0.596 GB, free: 15.68 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0003768/0.3334, allocations: 298 kB / 0.5962 GB, free: 15.38 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.3334, allocations: 3.938 kB / 0.5962 GB, free: 15.37 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001609/0.3336, allocations: 179.5 kB / 0.5964 GB, free: 15.18 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002552/0.3339, allocations: 44.45 kB / 0.5965 GB, free: 15.14 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007628/0.3346, allocations: 480.5 kB / 0.5969 GB, free: 14.66 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002026/0.3348, allocations: 0.7528 MB / 0.5976 GB, free: 13.88 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 7.479e-05/0.3349, allocations: 20.69 kB / 0.5977 GB, free: 13.86 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.917e-05/0.335, allocations: 16.66 kB / 0.5977 GB, free: 13.84 MB / 446.1 MB Notification: Performance of SimCode: time 4.51e-07/0.335, allocations: 0 / 0.5977 GB, free: 13.84 MB / 446.1 MB Notification: Performance of Templates: time 0.005358/0.3403, allocations: 2.821 MB / 0.6004 GB, free: 11.08 MB / 446.1 MB 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 -s gbode -lv LOG_STATS > IDEAS_dev_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1)