Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001557/0.001557, allocations: 121.8 kB / 18.5 MB, free: 4.578 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001475/0.001475, allocations: 208.9 kB / 21.46 MB, free: 1.625 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.528/1.528, allocations: 230.4 MB / 254.7 MB, free: 15.02 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002001/0.002001, allocations: 71.77 kB / 373.6 MB, free: 10.29 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1203/0.1223, allocations: 53.31 MB / 426.9 MB, free: 4.879 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.004014/0.1263, allocations: 2.028 MB / 428.9 MB, free: 2.84 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001063/0.1273, allocations: 0.5375 MB / 429.4 MB, free: 2.297 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001135/0.1275, allocations: 7.938 kB / 429.4 MB, free: 2.289 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001354/0.1276, allocations: 11.86 kB / 429.4 MB, free: 2.277 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 8.532e-05/0.1277, allocations: 31.73 kB / 429.5 MB, free: 2.246 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000388/0.1281, allocations: 55.86 kB / 429.5 MB, free: 2.191 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002147/0.1283, allocations: 123.6 kB / 429.7 MB, free: 2.07 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001731/0.1285, allocations: 33.44 kB / 429.7 MB, free: 2.035 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001004/0.1286, allocations: 51.83 kB / 429.7 MB, free: 1.984 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.427e-05/0.1287, allocations: 63.64 kB / 429.8 MB, free: 1.922 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.962e-05/0.1287, allocations: 8 kB / 429.8 MB, free: 1.914 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.499e-05/0.1287, allocations: 12 kB / 429.8 MB, free: 1.902 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.51e-05/0.1287, allocations: 23.92 kB / 429.8 MB, free: 1.879 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.05e-05/0.1288, allocations: 59.67 kB / 429.9 MB, free: 1.82 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002587/0.1291, allocations: 127.4 kB / 430 MB, free: 1.695 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.061e-06/0.1291, allocations: 0 / 430 MB, free: 1.695 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.953e-06/0.1291, allocations: 0 / 430 MB, free: 1.695 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.728e-06/0.1291, allocations: 4 kB / 430 MB, free: 1.691 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0007671/0.1299, allocations: 425.5 kB / 430.4 MB, free: 1.23 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.459e-05/0.1299, allocations: 8.031 kB / 430.5 MB, free: 1.223 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.459e-05/0.13, allocations: 46.73 kB / 430.5 MB, free: 1.168 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.092e-05/0.13, allocations: 16.84 kB / 430.5 MB, free: 1.152 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003237/0.1303, allocations: 208.1 kB / 430.7 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.702e-05/0.1304, allocations: 8.375 kB / 430.7 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.64e-05/0.1304, allocations: 20.27 kB / 430.7 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005301/0.1309, allocations: 246.1 kB / 431 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.648e-05/0.1309, allocations: 0 / 431 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.956e-05/0.131, allocations: 11.94 kB / 431 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.003e-06/0.131, allocations: 0 / 431 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002506/0.1312, allocations: 83.94 kB / 431.1 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1897/0.3209, allocations: 0.5958 MB / 431.7 MB, free: 10.86 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003075/0.3212, allocations: 136.5 kB / 431.8 MB, free: 10.79 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001627/0.3213, allocations: 74.39 kB / 431.9 MB, free: 10.76 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.878e-05/0.3214, allocations: 2.516 kB / 431.9 MB, free: 10.76 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.208e-05/0.3214, allocations: 39.34 kB / 431.9 MB, free: 10.72 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.854e-06/0.3214, allocations: 3.062 kB / 431.9 MB, free: 10.72 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005299/0.3219, allocations: 181.9 kB / 432.1 MB, free: 10.69 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.322e-05/0.322, allocations: 113.4 kB / 432.2 MB, free: 10.57 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001123/0.3221, allocations: 124.9 kB / 432.3 MB, free: 10.46 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.351e-05/0.3221, allocations: 29.83 kB / 432.4 MB, free: 10.43 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.924e-05/0.3222, allocations: 111.8 kB / 432.5 MB, free: 10.35 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.402e-05/0.3222, allocations: 31.59 kB / 432.5 MB, free: 10.34 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.368e-05/0.3223, allocations: 32.81 kB / 432.5 MB, free: 10.33 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.385e-05/0.3223, allocations: 323.5 kB / 432.9 MB, free: 10.02 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001083/0.3224, allocations: 35.39 kB / 432.9 MB, free: 10.02 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001362/0.3226, allocations: 132.9 kB / 433 MB, free: 9.898 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000251/0.3228, allocations: 177.4 kB / 433.2 MB, free: 9.781 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.397e-06/0.3228, allocations: 0.5938 kB / 433.2 MB, free: 9.781 MB / 350.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003391/0.3232, allocations: 195.6 kB / 433.4 MB, free: 9.742 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.209e-05/0.3232, allocations: 10.28 kB / 433.4 MB, free: 9.742 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.788e-06/0.3232, allocations: 5 kB / 433.4 MB, free: 9.742 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.272e-05/0.3232, allocations: 4.656 kB / 433.4 MB, free: 9.742 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001908/0.3234, allocations: 41.89 kB / 433.4 MB, free: 9.742 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.022e-05/0.3234, allocations: 12.19 kB / 433.5 MB, free: 9.742 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001032/0.3235, allocations: 20.72 kB / 433.5 MB, free: 9.738 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.4e-05/0.3235, allocations: 8.875 kB / 433.5 MB, free: 9.738 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * 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 9.119e-05/0.3236, allocations: 130.2 kB / 433.6 MB, free: 9.625 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001326/0.3238, allocations: 87.11 kB / 433.7 MB, free: 9.586 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.048e-05/0.3238, allocations: 15.06 kB / 433.7 MB, free: 9.582 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.008e-06/0.3238, allocations: 1.312 kB / 433.7 MB, free: 9.582 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.3238, allocations: 1.531 kB / 433.7 MB, free: 9.582 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.396e-06/0.3238, allocations: 2.703 kB / 433.7 MB, free: 9.582 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002149/0.324, allocations: 213.7 kB / 433.9 MB, free: 9.391 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-06/0.324, allocations: 1.828 kB / 433.9 MB, free: 9.391 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001627/0.3242, allocations: 31.78 kB / 434 MB, free: 9.391 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.288e-06/0.3242, allocations: 5.094 kB / 434 MB, free: 9.387 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.434e-05/0.3242, allocations: 9.844 kB / 434 MB, free: 9.387 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.995e-06/0.3242, allocations: 1.969 kB / 434 MB, free: 9.387 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.3242, allocations: 5.062 kB / 434 MB, free: 9.387 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004189/0.3246, allocations: 374.5 kB / 434.3 MB, free: 9.172 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.443e-05/0.3247, allocations: 94.59 kB / 434.4 MB, free: 9.07 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.393e-05/0.3247, allocations: 3.125 kB / 434.4 MB, free: 9.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001261/0.3248, allocations: 8.375 kB / 434.4 MB, free: 9.07 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.52e-05/0.3249, allocations: 9.016 kB / 434.5 MB, free: 9.07 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.494e-06/0.3249, allocations: 5.406 kB / 434.5 MB, free: 9.07 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.286e-05/0.3249, allocations: 98.67 kB / 434.6 MB, free: 8.996 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3249, allocations: 0.625 kB / 434.6 MB, free: 8.996 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003199/0.3252, allocations: 27.8 kB / 434.6 MB, free: 8.992 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (load.phi,load.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * 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.0005982/0.3258, allocations: 0.9098 MB / 435.5 MB, free: 8.242 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003083/0.3262, allocations: 115.5 kB / 435.6 MB, free: 8.238 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.3262, allocations: 0 / 435.6 MB, free: 8.238 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.086e-05/0.3262, allocations: 26.77 kB / 435.6 MB, free: 8.238 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005204/0.3268, allocations: 47.59 kB / 435.7 MB, free: 8.238 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002091/0.3289, allocations: 2.039 MB / 437.7 MB, free: 6.59 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002088/0.3291, allocations: 0.7103 MB / 438.4 MB, free: 5.895 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.168e-05/0.3291, allocations: 12.36 kB / 438.4 MB, free: 5.891 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.395e-05/0.3292, allocations: 36.12 kB / 438.5 MB, free: 5.883 MB / 350.1 MB Notification: Performance of SimCode: time 4.91e-07/0.3292, allocations: 0 / 438.5 MB, free: 5.883 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02745/0.3566, allocations: 2.772 MB / 441.3 MB, free: 5.496 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.51/8.867, allocations: 16.2 kB / 441.3 MB, free: 5.484 MB / 350.1 MB " [Timeout remaining time 651] (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController_fmu --startTime=0 --stopTime=5 --stepSize=0.000989903 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController.fmu > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.343100044876337] Failed to read output from testmodel.py, exit status != 0: ['time', 'load.phi', 'load.w', 'PI.x', 'PI.y'] 8.935242913197726 8.947904494 8.815908807 Calling exit ...