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.001217/0.001217, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001255/0.001255, allocations: 191 kB / 16.13 MB, free: 6.656 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.234/1.234, allocations: 222.9 MB / 239.8 MB, free: 4.586 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8189/0.8189, allocations: 135.1 MB / 425.1 MB, free: 11.95 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001092/0.001092, allocations: 64.5 kB / 0.5048 GB, free: 5.652 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.124/0.1251, allocations: 80.92 MB / 0.5838 GB, free: 4.898 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.002758/0.1279, allocations: 2.001 MB / 0.5858 GB, free: 2.871 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009718/0.1289, allocations: 0.7092 MB / 0.5865 GB, free: 2.16 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.991e-05/0.129, allocations: 3.938 kB / 0.5865 GB, free: 2.156 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001959/0.1292, allocations: 83.75 kB / 0.5865 GB, free: 2.074 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 9.824e-05/0.1293, allocations: 75.7 kB / 0.5866 GB, free: 2 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003977/0.1297, allocations: 166 kB / 0.5868 GB, free: 1.844 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002088/0.1299, allocations: 235.5 kB / 0.587 GB, free: 1.613 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000128/0.13, allocations: 74.08 kB / 0.5871 GB, free: 1.543 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001021/0.1301, allocations: 95.67 kB / 0.5872 GB, free: 1.449 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001506/0.1303, allocations: 147.5 kB / 0.5873 GB, free: 1.305 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.954e-05/0.1303, allocations: 8 kB / 0.5873 GB, free: 1.297 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001158/0.1304, allocations: 87.88 kB / 0.5874 GB, free: 1.211 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 6.336e-05/0.1305, allocations: 47.83 kB / 0.5874 GB, free: 1.164 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 9.127e-05/0.1306, allocations: 91.34 kB / 0.5875 GB, free: 1.074 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002547/0.1309, allocations: 287.1 kB / 0.5878 GB, free: 0.793 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.805e-06/0.1309, allocations: 0 / 0.5878 GB, free: 0.793 MB / 494.1 MB Notification: Performance of FrontEnd: time 6.82e-07/0.1309, allocations: 0 / 0.5878 GB, free: 0.793 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.537e-06/0.1309, allocations: 4 kB / 0.5878 GB, free: 0.7891 MB / 494.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.0006922/0.1316, allocations: 0.5935 MB / 0.5884 GB, free: 144 kB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.017e-05/0.1316, allocations: 8.031 kB / 0.5884 GB, free: 136 kB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.214e-05/0.1317, allocations: 50.73 kB / 0.5884 GB, free: 76 kB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.535e-05/0.1317, allocations: 24.66 kB / 0.5885 GB, free: 52 kB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000382/0.1321, allocations: 302.8 kB / 0.5887 GB, free: 15.71 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.271e-05/0.1322, allocations: 12.12 kB / 0.5888 GB, free: 15.7 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.714e-05/0.1322, allocations: 20 kB / 0.5888 GB, free: 15.68 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003465/0.1325, allocations: 219.9 kB / 0.589 GB, free: 15.45 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.682e-06/0.1326, allocations: 0 / 0.589 GB, free: 15.45 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.932e-05/0.1326, allocations: 8 kB / 0.589 GB, free: 15.44 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.753e-06/0.1326, allocations: 4 kB / 0.589 GB, free: 15.43 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002375/0.1328, allocations: 128.4 kB / 0.5891 GB, free: 15.31 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007142/0.1336, allocations: 0.6924 MB / 0.5898 GB, free: 14.56 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003467/0.1339, allocations: 166.6 kB / 0.59 GB, free: 14.39 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001583/0.1341, allocations: 100.9 kB / 0.59 GB, free: 14.29 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.521e-05/0.1341, allocations: 4 kB / 0.5901 GB, free: 14.28 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002884/0.1344, allocations: 170.2 kB / 0.5902 GB, free: 14.1 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=15): time 1.392e-06/0.1344, allocations: 0 / 0.5902 GB, free: 14.1 MB / 0.4981 GB Notification: Performance of matching and sorting (n=15): time 0.0006232/0.135, allocations: 376.4 kB / 0.5906 GB, free: 13.72 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.606e-05/0.1351, allocations: 132.5 kB / 0.5907 GB, free: 13.56 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002303/0.1353, allocations: 286.6 kB / 0.591 GB, free: 13.27 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.627e-05/0.1354, allocations: 33.7 kB / 0.591 GB, free: 13.23 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 8.768e-05/0.1355, allocations: 156.2 kB / 0.5912 GB, free: 13.08 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.766e-05/0.1355, allocations: 43.45 kB / 0.5912 GB, free: 13.04 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.572e-05/0.1356, allocations: 33.72 kB / 0.5912 GB, free: 13 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001/0.1357, allocations: 342.8 kB / 0.5916 GB, free: 12.65 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001601/0.1359, allocations: 83.95 kB / 0.5916 GB, free: 12.57 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001733/0.136, allocations: 133.1 kB / 0.5918 GB, free: 12.42 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002889/0.1363, allocations: 234.7 kB / 0.592 GB, free: 12.17 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.1363, allocations: 7.969 kB / 0.592 GB, free: 12.16 MB / 0.4981 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004486/0.1368, allocations: 340.6 kB / 0.5923 GB, free: 11.82 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.483e-05/0.1368, allocations: 39.88 kB / 0.5924 GB, free: 11.77 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/0.1369, allocations: 4 kB / 0.5924 GB, free: 11.77 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.027e-05/0.1369, allocations: 0 / 0.5924 GB, free: 11.77 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001121/0.137, allocations: 23.98 kB / 0.5924 GB, free: 11.75 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.62e-06/0.137, allocations: 4 kB / 0.5924 GB, free: 11.74 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001177/0.1371, allocations: 35.77 kB / 0.5924 GB, free: 11.71 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.567e-05/0.1371, allocations: 8 kB / 0.5924 GB, free: 11.7 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.0001549/0.1373, allocations: 198.7 kB / 0.5926 GB, free: 11.49 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.448e-05/0.1373, allocations: 23.72 kB / 0.5926 GB, free: 11.47 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.777e-05/0.1374, allocations: 25.83 kB / 0.5927 GB, free: 11.44 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.765e-06/0.1374, allocations: 4 kB / 0.5927 GB, free: 11.43 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.1374, allocations: 0 / 0.5927 GB, free: 11.43 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.959e-06/0.1374, allocations: 3.938 kB / 0.5927 GB, free: 11.43 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002195/0.1376, allocations: 289.5 kB / 0.593 GB, free: 11.1 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.1377, allocations: 0 / 0.593 GB, free: 11.1 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.554e-05/0.1378, allocations: 19.98 kB / 0.593 GB, free: 11.08 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-06/0.1378, allocations: 0 / 0.593 GB, free: 11.08 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.795e-05/0.1378, allocations: 4 kB / 0.593 GB, free: 11.07 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/0.1378, allocations: 0 / 0.593 GB, free: 11.07 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.1378, allocations: 96 / 0.593 GB, free: 11.07 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006487/0.1385, allocations: 481.2 kB / 0.5934 GB, free: 10.58 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.263e-05/0.1385, allocations: 100.8 kB / 0.5935 GB, free: 10.46 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.511e-05/0.1386, allocations: 12 kB / 0.5935 GB, free: 10.45 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001002/0.1387, allocations: 11.98 kB / 0.5936 GB, free: 10.44 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.992e-05/0.1388, allocations: 27.89 kB / 0.5936 GB, free: 10.41 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.007e-05/0.1388, allocations: 4 kB / 0.5936 GB, free: 10.41 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001693/0.139, allocations: 205.9 kB / 0.5938 GB, free: 10.21 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.523e-06/0.139, allocations: 0 / 0.5938 GB, free: 10.21 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002534/0.1392, allocations: 64.12 kB / 0.5938 GB, free: 10.15 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.0009471/0.1402, allocations: 1.016 MB / 0.5948 GB, free: 9.098 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004212/0.1406, allocations: 303.2 kB / 0.5951 GB, free: 8.789 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.1406, allocations: 0 / 0.5951 GB, free: 8.789 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002022/0.1408, allocations: 179.4 kB / 0.5953 GB, free: 8.602 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002709/0.1411, allocations: 36.48 kB / 0.5953 GB, free: 8.566 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003102/0.1442, allocations: 2.806 MB / 0.5981 GB, free: 5.668 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002706/0.1445, allocations: 0.7556 MB / 0.5988 GB, free: 4.887 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 8.162e-05/0.1446, allocations: 21.55 kB / 0.5988 GB, free: 4.867 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.947e-05/0.1447, allocations: 71.41 kB / 0.5989 GB, free: 4.797 MB / 0.4981 GB Notification: Performance of SimCode: time 2.6e-07/0.1447, allocations: 0 / 0.5989 GB, free: 4.797 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2202/0.3649, allocations: 4.922 MB / 0.6037 GB, free: 52.54 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001338/0.3651, allocations: 191.6 kB / 0.6039 GB, free: 52.29 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.627/1.992, allocations: 5.906 kB / 0.6039 GB, free: 52.29 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/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)