Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.Continuous.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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.Continuous,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_Continuous",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Continuous,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_Continuous",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00205/0.00205, allocations: 109.1 kB / 17.33 MB, free: 6 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002333/0.002333, allocations: 205.8 kB / 18.26 MB, free: 5.082 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.562/2.562, allocations: 227.4 MB / 246.4 MB, free: 10.78 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 2.309/2.309, allocations: 46.1 MB / 343.8 MB, free: 11.76 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001505/0.001505, allocations: 75.94 kB / 417.1 MB, free: 19.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1067/0.1082, allocations: 62.43 MB / 479.6 MB, free: 5.531 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Continuous): time 0.00443/0.1127, allocations: 3.359 MB / 482.9 MB, free: 2.152 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002789/0.1155, allocations: 1.575 MB / 484.5 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004708/0.116, allocations: 19.88 kB / 484.5 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005415/0.1166, allocations: 111.2 kB / 484.6 MB, free: 452 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005594/0.1172, allocations: 155 kB / 484.8 MB, free: 296 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001208/0.1184, allocations: 0.4986 MB / 485.3 MB, free: 15.79 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001016/0.1194, allocations: 0.9007 MB / 486.2 MB, free: 14.89 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003797/0.1198, allocations: 234.4 kB / 486.4 MB, free: 14.65 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005553/0.1204, allocations: 366.4 kB / 486.8 MB, free: 14.29 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005293/0.1209, allocations: 406.1 kB / 487.2 MB, free: 13.89 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001364/0.1211, allocations: 60 kB / 487.2 MB, free: 13.83 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001477/0.1212, allocations: 68 kB / 487.3 MB, free: 13.77 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002073/0.1214, allocations: 207.3 kB / 487.5 MB, free: 13.56 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003132/0.1217, allocations: 349.8 kB / 487.8 MB, free: 13.22 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007178/0.1225, allocations: 0.7434 MB / 488.6 MB, free: 12.47 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.65e-06/0.1225, allocations: 7.938 kB / 488.6 MB, free: 12.46 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.1225, allocations: 0 / 488.6 MB, free: 12.46 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.607e-05/0.1225, allocations: 0 / 488.6 MB, free: 12.46 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 110 * Number of variables: 110 Notification: Performance of Generate backend data structure: time 0.002366/0.1249, allocations: 1.16 MB / 489.8 MB, free: 11.25 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.027e-05/0.1249, allocations: 13.11 kB / 489.8 MB, free: 11.24 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.884e-05/0.1251, allocations: 78.72 kB / 489.8 MB, free: 11.16 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000253/0.1253, allocations: 99.89 kB / 489.9 MB, free: 11.06 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008773/0.1262, allocations: 0.5584 MB / 490.5 MB, free: 10.46 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.723e-05/0.1262, allocations: 41.31 kB / 490.5 MB, free: 10.42 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.118e-05/0.1263, allocations: 60.27 kB / 490.6 MB, free: 10.36 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001081/0.1274, allocations: 0.6222 MB / 491.2 MB, free: 9.684 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.162e-05/0.1275, allocations: 3.938 kB / 491.2 MB, free: 9.68 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.998e-05/0.1275, allocations: 20 kB / 491.2 MB, free: 9.66 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.038e-05/0.1275, allocations: 8 kB / 491.3 MB, free: 9.652 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001038/0.1286, allocations: 461.8 kB / 491.7 MB, free: 9.199 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00348/0.1321, allocations: 2.667 MB / 494.4 MB, free: 6.434 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001071/0.1332, allocations: 0.5469 MB / 494.9 MB, free: 5.867 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005466/0.1337, allocations: 250.4 kB / 495.2 MB, free: 5.613 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.326e-05/0.1338, allocations: 16 kB / 495.2 MB, free: 5.598 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.104e-05/0.1338, allocations: 42.56 kB / 495.2 MB, free: 5.547 MB / 366.1 MB Notification: Performance of pre-optimization done (n=43): time 1.663e-06/0.1338, allocations: 0 / 495.2 MB, free: 5.547 MB / 366.1 MB Notification: Performance of matching and sorting (n=44): time 0.002402/0.1362, allocations: 1.128 MB / 496.3 MB, free: 4.406 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.208e-05/0.1363, allocations: 166.2 kB / 496.5 MB, free: 4.207 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008214/0.1371, allocations: 0.6529 MB / 497.2 MB, free: 3.543 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.829e-05/0.1372, allocations: 33.7 kB / 497.2 MB, free: 3.504 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002627/0.1375, allocations: 364 kB / 497.6 MB, free: 3.141 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001334/0.1376, allocations: 169.5 kB / 497.7 MB, free: 2.973 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001785/0.1378, allocations: 118.2 kB / 497.8 MB, free: 2.852 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001037/0.1379, allocations: 337.9 kB / 498.2 MB, free: 2.516 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006058/0.1385, allocations: 267.3 kB / 498.4 MB, free: 2.25 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006891/0.1392, allocations: 433.5 kB / 498.8 MB, free: 1.758 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001252/0.1405, allocations: 0.6779 MB / 499.5 MB, free: 1.023 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.876e-06/0.1405, allocations: 0 / 499.5 MB, free: 1.023 MB / 366.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.001581/0.1421, allocations: 0.7986 MB / 0.4886 GB, free: 224 kB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.807e-05/0.1421, allocations: 8 kB / 0.4886 GB, free: 216 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.12e-05/0.1421, allocations: 4 kB / 0.4886 GB, free: 212 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.898e-05/0.1422, allocations: 8 kB / 0.4886 GB, free: 204 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000663/0.1428, allocations: 152.2 kB / 0.4888 GB, free: 52 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.018e-05/0.1429, allocations: 19.86 kB / 0.4888 GB, free: 32 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005335/0.1434, allocations: 71.62 kB / 0.4888 GB, free: 15.96 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.639e-05/0.1435, allocations: 28 kB / 0.4889 GB, free: 15.93 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000703/0.1442, allocations: 409.5 kB / 0.4893 GB, free: 15.53 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006346/0.1448, allocations: 416.3 kB / 0.4897 GB, free: 15.06 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001155/0.146, allocations: 0.6623 MB / 0.4903 GB, free: 14.34 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.569e-06/0.146, allocations: 4 kB / 0.4903 GB, free: 14.34 MB / 382.1 MB Notification: Performance of matching and sorting (n=77) (initialization_lambda0): time 0.001465/0.1475, allocations: 0.7607 MB / 0.4911 GB, free: 13.57 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.296e-05/0.1475, allocations: 11.98 kB / 0.4911 GB, free: 13.56 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.084e-06/0.1475, allocations: 8.516 kB / 0.4911 GB, free: 13.55 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.244e-05/0.1475, allocations: 12 kB / 0.4911 GB, free: 13.54 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006012/0.1481, allocations: 147.7 kB / 0.4912 GB, free: 13.39 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.316e-05/0.1481, allocations: 11.94 kB / 0.4912 GB, free: 13.38 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005165/0.1487, allocations: 83.47 kB / 0.4913 GB, free: 13.3 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.337e-05/0.1487, allocations: 24 kB / 0.4913 GB, free: 13.28 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 4 (limPID.I.local_reset,pID.I.local_reset,limIntegrator.local_reset,integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (77): * Single equations (assignments): 77 * 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 0.0001698/0.1489, allocations: 232 kB / 0.4916 GB, free: 13.04 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001407/0.149, allocations: 75.06 kB / 0.4916 GB, free: 12.97 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001805/0.1492, allocations: 90.2 kB / 0.4917 GB, free: 12.88 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.384e-06/0.1492, allocations: 7.938 kB / 0.4917 GB, free: 12.87 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.033e-05/0.1493, allocations: 4 kB / 0.4917 GB, free: 12.87 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.32e-06/0.1493, allocations: 0 / 0.4917 GB, free: 12.87 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001236/0.1505, allocations: 0.8493 MB / 0.4926 GB, free: 11.96 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.529e-06/0.1505, allocations: 3.938 kB / 0.4926 GB, free: 11.96 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000658/0.1512, allocations: 107.8 kB / 0.4927 GB, free: 11.85 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.522e-06/0.1512, allocations: 0 / 0.4927 GB, free: 11.85 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.893e-05/0.1513, allocations: 16 kB / 0.4927 GB, free: 11.84 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.41e-06/0.1513, allocations: 4 kB / 0.4927 GB, free: 11.83 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.1513, allocations: 96 / 0.4927 GB, free: 11.83 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001934/0.1532, allocations: 1.133 MB / 0.4938 GB, free: 10.68 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002715/0.1535, allocations: 200.1 kB / 0.494 GB, free: 10.46 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.612e-05/0.1536, allocations: 12 kB / 0.494 GB, free: 10.45 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005576/0.1542, allocations: 51.94 kB / 0.494 GB, free: 10.4 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001331/0.1543, allocations: 39.89 kB / 0.4941 GB, free: 10.36 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.37e-05/0.1544, allocations: 11.98 kB / 0.4941 GB, free: 10.35 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006889/0.1551, allocations: 463 kB / 0.4945 GB, free: 9.898 MB / 382.1 MB Notification: Performance of sort global known variables: time 4.01e-07/0.1551, allocations: 4 kB / 0.4945 GB, free: 9.895 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000799/0.1559, allocations: 192 kB / 0.4947 GB, free: 9.707 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 18 (limPID.I.y,limPID.D.x,transferFunction.x_scaled[1],stateSpace.x[1],stateSpace.x[2],lowpassButterworth.x1[1],lowpassButterworth.x2[1],criticalDamping.x[1],criticalDamping.x[2],integrator.y,limIntegrator.y,derivative.x,firstOrder.y,secondOrder.y,secondOrder.yd,pI.x,pID.I.y,pID.D.x) * 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 (44): * Single equations (assignments): 44 * 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.002325/0.1582, allocations: 1.685 MB / 0.4964 GB, free: 8 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002235/0.1605, allocations: 0.9995 MB / 0.4973 GB, free: 7.004 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.1605, allocations: 0 / 0.4973 GB, free: 7.004 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006078/0.1611, allocations: 284.4 kB / 0.4976 GB, free: 6.727 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001106/0.1622, allocations: 187.2 kB / 0.4978 GB, free: 6.547 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1896/0.3518, allocations: 7.084 MB / 0.5047 GB, free: 41.44 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005603/0.3524, allocations: 0.9498 MB / 0.5056 GB, free: 40.74 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007291/0.3531, allocations: 152.5 kB / 0.5058 GB, free: 40.74 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004012/0.3535, allocations: 261.5 kB / 0.506 GB, free: 40.73 MB / 382.1 MB Notification: Performance of SimCode: time 1.493e-06/0.3536, allocations: 0 / 0.506 GB, free: 40.73 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.838/2.191, allocations: 13.99 MB / 0.5197 GB, free: 37.02 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001459/2.191, allocations: 191.9 kB / 0.5199 GB, free: 36.77 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.548/4.74, allocations: 4 kB / 0.5199 GB, free: 36.76 MB / 382.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.Continuous.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.Continuous.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.Continuous.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.Continuous.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.Continuous_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_Continuous_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_Continuous.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.Continuous.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.Continuous_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/Continuous/Continuous.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.Continuous.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches