Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimPID.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.001463/0.001463, allocations: 105.5 kB / 19.74 MB, free: 2.566 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.001557/0.001557, allocations: 221.1 kB / 22.92 MB, free: 5.535 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.316/1.316, allocations: 230.2 MB / 256.2 MB, free: 8.746 MB / 206.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.1994/0.1994, allocations: 46.88 MB / 359.3 MB, free: 4.984 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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(ModelicaTest.Blocks.LimPID,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_LimPID",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.LimPID,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_LimPID",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica 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.002138/0.002138, allocations: 79.88 kB / 0.494 GB, free: 9.117 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2657/0.2678, allocations: 65.98 MB / 0.5584 GB, free: 5.219 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimPID): time 0.00568/0.2735, allocations: 4.377 MB / 0.5627 GB, free: 0.8125 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002713/0.2762, allocations: 1.597 MB / 0.5642 GB, free: 15.21 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003399/0.2766, allocations: 27.88 kB / 0.5643 GB, free: 15.18 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003468/0.2769, allocations: 158.2 kB / 0.5644 GB, free: 15.02 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000334/0.2773, allocations: 174.3 kB / 0.5646 GB, free: 14.85 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001127/0.2784, allocations: 0.6142 MB / 0.5652 GB, free: 14.25 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009791/0.2794, allocations: 1.023 MB / 0.5662 GB, free: 13.22 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004487/0.2798, allocations: 316.9 kB / 0.5665 GB, free: 12.89 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003476/0.2802, allocations: 370.2 kB / 0.5668 GB, free: 12.53 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003721/0.2805, allocations: 377.7 kB / 0.5672 GB, free: 12.16 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001252/0.2807, allocations: 88 kB / 0.5673 GB, free: 12.07 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001076/0.2808, allocations: 84 kB / 0.5674 GB, free: 11.99 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001648/0.2809, allocations: 207.2 kB / 0.5676 GB, free: 11.79 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003302/0.2813, allocations: 437.2 kB / 0.568 GB, free: 11.36 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009505/0.2822, allocations: 1.034 MB / 0.569 GB, free: 10.32 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.027e-06/0.2822, allocations: 0 / 0.569 GB, free: 10.32 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.2822, allocations: 4 kB / 0.569 GB, free: 10.32 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.001e-05/0.2822, allocations: 0 / 0.569 GB, free: 10.32 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 156 * Number of variables: 156 Notification: Performance of Generate backend data structure: time 0.001911/0.2841, allocations: 1.323 MB / 0.5703 GB, free: 8.938 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.326e-05/0.2842, allocations: 16.03 kB / 0.5703 GB, free: 8.922 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001148/0.2843, allocations: 102.7 kB / 0.5704 GB, free: 8.812 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001599/0.2845, allocations: 120.2 kB / 0.5705 GB, free: 8.695 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009046/0.2854, allocations: 0.664 MB / 0.5712 GB, free: 7.988 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.091e-05/0.2854, allocations: 45.69 kB / 0.5712 GB, free: 7.945 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.806e-05/0.2855, allocations: 72.38 kB / 0.5713 GB, free: 7.875 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001252/0.2867, allocations: 0.7657 MB / 0.572 GB, free: 7.039 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.676e-05/0.2868, allocations: 3.938 kB / 0.572 GB, free: 7.035 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.132e-05/0.2868, allocations: 28 kB / 0.572 GB, free: 7.008 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.538e-05/0.2868, allocations: 16 kB / 0.5721 GB, free: 6.992 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001136/0.288, allocations: 0.5423 MB / 0.5726 GB, free: 6.449 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003245/0.2912, allocations: 2.726 MB / 0.5753 GB, free: 3.625 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001324/0.2925, allocations: 0.6436 MB / 0.5759 GB, free: 2.945 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005312/0.2931, allocations: 275.4 kB / 0.5761 GB, free: 2.664 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.108e-05/0.2931, allocations: 7.938 kB / 0.5762 GB, free: 2.656 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.507e-05/0.2932, allocations: 42.56 kB / 0.5762 GB, free: 2.605 MB / 414.1 MB Notification: Performance of pre-optimization done (n=52): time 2.254e-06/0.2932, allocations: 0 / 0.5762 GB, free: 2.605 MB / 414.1 MB Notification: Performance of matching and sorting (n=52): time 0.001749/0.2949, allocations: 0.793 MB / 0.577 GB, free: 1.809 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001836/0.2951, allocations: 350.1 kB / 0.5773 GB, free: 1.387 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007653/0.2959, allocations: 0.7006 MB / 0.578 GB, free: 0.6758 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.894e-05/0.2959, allocations: 37.7 kB / 0.578 GB, free: 0.6328 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003339/0.2962, allocations: 441 kB / 0.5784 GB, free: 200 kB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001501/0.2964, allocations: 198.3 kB / 0.5786 GB, free: 0 / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000185/0.2966, allocations: 106.2 kB / 0.5787 GB, free: 15.89 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001293/0.2967, allocations: 325.9 kB / 0.579 GB, free: 15.56 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005068/0.2972, allocations: 239 kB / 0.5793 GB, free: 15.33 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006298/0.2978, allocations: 391 kB / 0.5796 GB, free: 14.88 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001058/0.2989, allocations: 0.5601 MB / 0.5802 GB, free: 14.29 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.2989, allocations: 0 / 0.5802 GB, free: 14.29 MB / 430.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.002521/0.3014, allocations: 1.037 MB / 0.5812 GB, free: 13.23 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.787e-05/0.3014, allocations: 8 kB / 0.5812 GB, free: 13.23 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.155e-06/0.3014, allocations: 7.938 kB / 0.5812 GB, free: 13.22 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001137/0.3026, allocations: 323.2 kB / 0.5815 GB, free: 12.89 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005134/0.3031, allocations: 123.9 kB / 0.5816 GB, free: 12.77 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008688/0.3118, allocations: 7.272 MB / 0.5888 GB, free: 4.934 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000543/0.3123, allocations: 75.59 kB / 0.5888 GB, free: 4.859 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.53e-05/0.3124, allocations: 20.06 kB / 0.5888 GB, free: 4.84 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006186/0.313, allocations: 349.2 kB / 0.5892 GB, free: 4.492 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005135/0.3135, allocations: 355.5 kB / 0.5895 GB, free: 4.082 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008535/0.3143, allocations: 0.5003 MB / 0.59 GB, free: 3.547 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.964e-06/0.3143, allocations: 0 / 0.59 GB, free: 3.547 MB / 430.1 MB Notification: Performance of matching and sorting (n=69) (initialization_lambda0): time 0.001487/0.3158, allocations: 0.7468 MB / 0.5907 GB, free: 2.789 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.024e-05/0.3158, allocations: 4 kB / 0.5907 GB, free: 2.785 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.781e-06/0.3159, allocations: 4 kB / 0.5907 GB, free: 2.781 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004637/0.3163, allocations: 141.8 kB / 0.5909 GB, free: 2.637 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006897/0.317, allocations: 180 kB / 0.591 GB, free: 2.461 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003531/0.3205, allocations: 3.431 MB / 0.5944 GB, free: 14.76 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004574/0.321, allocations: 67.64 kB / 0.5945 GB, free: 14.69 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.37e-05/0.321, allocations: 19.98 kB / 0.5945 GB, free: 14.67 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 4 (PID4.I.local_reset,PID3.I.local_reset,PID2.I.local_reset,PID1.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (53): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(1,4), (1,4), (1,4), (1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0002107/0.3212, allocations: 224.2 kB / 0.5947 GB, free: 14.45 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001777/0.3214, allocations: 95.33 kB / 0.5948 GB, free: 14.35 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001955/0.3216, allocations: 95.16 kB / 0.5949 GB, free: 14.25 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.182e-06/0.3216, allocations: 11.98 kB / 0.5949 GB, free: 14.24 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.533e-06/0.3216, allocations: 0 / 0.5949 GB, free: 14.24 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.737e-06/0.3216, allocations: 7.984 kB / 0.5949 GB, free: 14.23 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009769/0.3226, allocations: 0.7351 MB / 0.5956 GB, free: 13.45 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.445e-06/0.3226, allocations: 0 / 0.5956 GB, free: 13.45 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005318/0.3231, allocations: 107.9 kB / 0.5957 GB, free: 13.34 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.873e-06/0.3232, allocations: 7.938 kB / 0.5957 GB, free: 13.33 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.42e-05/0.3232, allocations: 12 kB / 0.5957 GB, free: 13.32 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.141e-06/0.3232, allocations: 7.938 kB / 0.5957 GB, free: 13.31 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.3232, allocations: 3.984 kB / 0.5957 GB, free: 13.31 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001853/0.325, allocations: 1.202 MB / 0.5969 GB, free: 12.1 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002521/0.3253, allocations: 228.2 kB / 0.5971 GB, free: 11.86 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.951e-05/0.3254, allocations: 8 kB / 0.5971 GB, free: 11.85 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004843/0.3259, allocations: 43.95 kB / 0.5972 GB, free: 11.8 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.211e-05/0.3259, allocations: 39.89 kB / 0.5972 GB, free: 11.77 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.919e-05/0.326, allocations: 12 kB / 0.5972 GB, free: 11.75 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0005715/0.3265, allocations: 487 kB / 0.5977 GB, free: 11.29 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3265, allocations: 3.938 kB / 0.5977 GB, free: 11.28 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0009351/0.3275, allocations: 283.4 kB / 0.598 GB, free: 11 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (PID1.I.y,firstOrder1.y,PID2.I.y,firstOrder2.y,PID3.I.y,firstOrder3.y,PID4.I.y,firstOrder4.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 52 * 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.002191/0.3297, allocations: 1.766 MB / 0.5997 GB, free: 9.207 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003943/0.3336, allocations: 1.841 MB / 0.6015 GB, free: 7.297 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.11e-06/0.3336, allocations: 4 kB / 0.6015 GB, free: 7.293 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005568/0.3342, allocations: 263.7 kB / 0.6018 GB, free: 7.035 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001205/0.3354, allocations: 231.8 kB / 0.602 GB, free: 6.816 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01133/0.3467, allocations: 7.215 MB / 0.609 GB, free: 15.34 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006398/0.3473, allocations: 0.9809 MB / 0.61 GB, free: 14.34 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0003633/0.3477, allocations: 97.05 kB / 0.6101 GB, free: 14.24 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004217/0.3481, allocations: 327.3 kB / 0.6104 GB, free: 13.92 MB / 462.1 MB Notification: Performance of SimCode: time 8.21e-07/0.3481, allocations: 0 / 0.6104 GB, free: 13.92 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05964/0.4078, allocations: 20.48 MB / 0.6304 GB, free: 9.574 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.05/12.45, allocations: 2.344 kB / 0.6304 GB, free: 9.574 MB / 478.1 MB " [Timeout remaining time 647] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimPID.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimPID.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimPID.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimPID.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimPID_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_LimPID_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_LimPID.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimPID.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 15.013216186009231]