Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.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/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/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(ModelicaTest.Blocks.FirstOrderHold,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.FirstOrderHold,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_FirstOrderHold",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.001663/0.001663, allocations: 104.2 kB / 17.63 MB, free: 5.523 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.002309/0.002309, allocations: 191.9 kB / 18.56 MB, free: 4.605 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.474/1.474, allocations: 222.9 MB / 242.3 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2185/0.2185, allocations: 44.19 MB / 336.6 MB, free: 2.766 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001133/0.001133, allocations: 54.97 kB / 408.5 MB, free: 27.15 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1136/0.1148, allocations: 60.83 MB / 469.4 MB, free: 14.29 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.003187/0.118, allocations: 1.526 MB / 470.9 MB, free: 12.74 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001042/0.1191, allocations: 482.8 kB / 471.4 MB, free: 12.27 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.321e-05/0.1192, allocations: 4 kB / 471.4 MB, free: 12.26 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.524e-05/0.1192, allocations: 3.938 kB / 471.4 MB, free: 12.26 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001046/0.1194, allocations: 15.84 kB / 471.4 MB, free: 12.24 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002406/0.1196, allocations: 47.89 kB / 471.4 MB, free: 12.2 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001636/0.1198, allocations: 87.7 kB / 471.5 MB, free: 12.11 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000114/0.1199, allocations: 8 kB / 471.5 MB, free: 12.1 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001693/0.1201, allocations: 47.77 kB / 471.6 MB, free: 12.05 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001011/0.1202, allocations: 39.84 kB / 471.6 MB, free: 12.02 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.429e-05/0.1202, allocations: 8 kB / 471.6 MB, free: 12.01 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.917e-05/0.1203, allocations: 4 kB / 471.6 MB, free: 12 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.441e-05/0.1203, allocations: 15.98 kB / 471.6 MB, free: 11.99 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.447e-05/0.1204, allocations: 43.78 kB / 471.7 MB, free: 11.95 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000137/0.1205, allocations: 75.98 kB / 471.7 MB, free: 11.87 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.1205, allocations: 4 kB / 471.7 MB, free: 11.87 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.1206, allocations: 0 / 471.7 MB, free: 11.87 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.634e-06/0.1206, allocations: 0 / 471.7 MB, free: 11.87 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0007513/0.1213, allocations: 391.3 kB / 472.1 MB, free: 11.44 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.108e-05/0.1214, allocations: 8.031 kB / 472.1 MB, free: 11.43 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.641e-05/0.1214, allocations: 42.75 kB / 472.2 MB, free: 11.38 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.839e-05/0.1215, allocations: 8.844 kB / 472.2 MB, free: 11.37 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001471/0.1216, allocations: 180.2 kB / 472.4 MB, free: 11.16 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.95e-05/0.1217, allocations: 8.375 kB / 472.4 MB, free: 11.15 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.192e-05/0.1217, allocations: 12.36 kB / 472.4 MB, free: 11.14 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002206/0.1219, allocations: 89.77 kB / 472.5 MB, free: 11.04 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.028e-05/0.1219, allocations: 0 / 472.5 MB, free: 11.04 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.297e-05/0.122, allocations: 0 / 472.5 MB, free: 11.04 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.552e-06/0.122, allocations: 4 kB / 472.5 MB, free: 11.04 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001358/0.1221, allocations: 55.16 kB / 472.5 MB, free: 10.99 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00057/0.1227, allocations: 324.7 kB / 472.8 MB, free: 10.62 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001959/0.1229, allocations: 94.48 kB / 472.9 MB, free: 10.52 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.147e-05/0.123, allocations: 40.84 kB / 473 MB, free: 10.48 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.478e-05/0.123, allocations: 3.984 kB / 473 MB, free: 10.47 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002508/0.1233, allocations: 103.3 kB / 473.1 MB, free: 10.36 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.763e-06/0.1233, allocations: 0 / 473.1 MB, free: 10.36 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004728/0.1238, allocations: 185.7 kB / 473.3 MB, free: 10.17 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.108e-05/0.1238, allocations: 55.39 kB / 473.3 MB, free: 10.11 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001015/0.124, allocations: 121.8 kB / 473.4 MB, free: 9.977 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.553e-05/0.124, allocations: 29.7 kB / 473.5 MB, free: 9.941 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.752e-05/0.1241, allocations: 92.42 kB / 473.6 MB, free: 9.844 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.969e-05/0.1242, allocations: 35.55 kB / 473.6 MB, free: 9.809 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.915e-05/0.1243, allocations: 41.7 kB / 473.6 MB, free: 9.762 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001815/0.1245, allocations: 322.8 kB / 473.9 MB, free: 9.438 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001371/0.1246, allocations: 35.92 kB / 474 MB, free: 9.402 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001759/0.1248, allocations: 81.12 kB / 474.1 MB, free: 9.305 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002806/0.1251, allocations: 117.1 kB / 474.2 MB, free: 9.172 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.852e-06/0.1251, allocations: 4 kB / 474.2 MB, free: 9.168 MB / 350.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004618/0.1256, allocations: 165.5 kB / 474.3 MB, free: 9 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.545e-05/0.1257, allocations: 6.5 kB / 474.3 MB, free: 8.996 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.145e-06/0.1257, allocations: 0 / 474.3 MB, free: 8.996 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.394e-05/0.1257, allocations: 7.938 kB / 474.4 MB, free: 8.988 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001611/0.1259, allocations: 23.92 kB / 474.4 MB, free: 8.965 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.788e-06/0.1259, allocations: 0 / 474.4 MB, free: 8.965 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000126/0.126, allocations: 12.09 kB / 474.4 MB, free: 8.953 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.111e-05/0.1261, allocations: 12 kB / 474.4 MB, free: 8.941 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 18 (firstOrderHold.firstTrigger,$PRE.firstOrderHold.firstTrigger,zeroOrderHold.firstTrigger,$PRE.zeroOrderHold.firstTrigger,$PRE.zeroOrderHold.ySample,zeroOrderHold.sampleTrigger,$whenCondition1,firstOrderHold.sampleTrigger,$whenCondition2,firstOrderHold.c,$PRE.firstOrderHold.c,firstOrderHold.pre_uSample,$PRE.firstOrderHold.pre_uSample,firstOrderHold.uSample,$PRE.firstOrderHold.uSample,firstOrderHold.tSample,$PRE.firstOrderHold.tSample,zeroOrderHold.ySample) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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.0001323/0.1262, allocations: 128 kB / 474.5 MB, free: 8.805 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.835e-05/0.1263, allocations: 11.89 kB / 474.5 MB, free: 8.793 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.922e-05/0.1263, allocations: 8.5 kB / 474.5 MB, free: 8.781 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.008e-05/0.1264, allocations: 7.938 kB / 474.6 MB, free: 8.773 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.1264, allocations: 0 / 474.6 MB, free: 8.773 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.699e-06/0.1264, allocations: 0 / 474.6 MB, free: 8.773 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008522/0.1273, allocations: 458.3 kB / 475 MB, free: 8.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.087e-06/0.1273, allocations: 0 / 475 MB, free: 8.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.213e-05/0.1273, allocations: 7.984 kB / 475 MB, free: 8.262 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.316e-06/0.1273, allocations: 0 / 475 MB, free: 8.262 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.273e-05/0.1274, allocations: 4 kB / 475 MB, free: 8.258 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.904e-06/0.1274, allocations: 0 / 475 MB, free: 8.258 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.21e-06/0.1274, allocations: 0 / 475 MB, free: 8.258 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005729/0.128, allocations: 261.3 kB / 475.3 MB, free: 7.988 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.482e-05/0.1281, allocations: 89.33 kB / 475.4 MB, free: 7.883 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.805e-05/0.1281, allocations: 11.92 kB / 475.4 MB, free: 7.871 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001743/0.1283, allocations: 8 kB / 475.4 MB, free: 7.863 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.603e-05/0.1284, allocations: 7.984 kB / 475.4 MB, free: 7.855 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.191e-05/0.1284, allocations: 15.92 kB / 475.4 MB, free: 7.84 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.251e-05/0.1285, allocations: 87.28 kB / 475.5 MB, free: 7.754 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.1e-07/0.1285, allocations: 0 / 475.5 MB, free: 7.754 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004493/0.129, allocations: 20 kB / 475.5 MB, free: 7.734 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 (firstOrderHold.sampleTrigger,zeroOrderHold.sampleTrigger,$whenCondition2,$whenCondition1,zeroOrderHold.firstTrigger,zeroOrderHold.ySample,firstOrderHold.firstTrigger,firstOrderHold.tSample,firstOrderHold.uSample,firstOrderHold.pre_uSample,firstOrderHold.c) * Number of discrete states: 3 (zeroOrderHold.ySample,firstOrderHold.uSample,firstOrderHold.c) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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.0006981/0.1297, allocations: 0.7942 MB / 476.3 MB, free: 6.914 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003613/0.1301, allocations: 107.9 kB / 476.4 MB, free: 6.809 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/0.1301, allocations: 4.312 kB / 476.4 MB, free: 6.805 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001767/0.1303, allocations: 59.53 kB / 476.5 MB, free: 6.75 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004537/0.1308, allocations: 12 kB / 476.5 MB, free: 6.738 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002701/0.1335, allocations: 1.632 MB / 478.1 MB, free: 5 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003809/0.1339, allocations: 0.6963 MB / 478.8 MB, free: 4.277 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.103e-05/0.134, allocations: 8.875 kB / 478.8 MB, free: 4.27 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.256e-05/0.1341, allocations: 27.44 kB / 478.8 MB, free: 4.242 MB / 350.1 MB Notification: Performance of SimCode: time 4.71e-07/0.1341, allocations: 0 / 478.8 MB, free: 4.242 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02426/0.1583, allocations: 2.116 MB / 481 MB, free: 2.176 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.618/7.776, allocations: 11.53 kB / 481 MB, free: 2.172 MB / 350.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Blocks_FirstOrderHold_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Blocks_FirstOrderHold.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/FirstOrderHold/FirstOrderHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches