Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.IntegratorForceState.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.IntegratorForceState,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_IntegratorForceState",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.IntegratorForceState,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_IntegratorForceState",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.001156/0.001156, allocations: 103.7 kB / 16.41 MB, free: 6.484 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.001201/0.001201, allocations: 188.1 kB / 17.34 MB, free: 5.766 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.439/1.439, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.224/0.224, allocations: 43.53 MB / 314.1 MB, free: 464 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001505/0.001505, allocations: 63.91 kB / 441.3 MB, free: 6.188 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1166/0.1181, allocations: 57.79 MB / 499.1 MB, free: 12.32 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.IntegratorForceState): time 0.004247/0.1224, allocations: 1.552 MB / 0.4889 GB, free: 10.76 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003104/0.1228, allocations: 67.72 kB / 0.489 GB, free: 10.69 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.884e-05/0.1229, allocations: 0 / 0.489 GB, free: 10.69 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001224/0.123, allocations: 7.938 kB / 0.489 GB, free: 10.68 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 4.549e-05/0.1231, allocations: 7.922 kB / 0.489 GB, free: 10.68 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000152/0.1233, allocations: 19.92 kB / 0.489 GB, free: 10.66 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00013/0.1234, allocations: 31.92 kB / 0.489 GB, free: 10.62 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001198/0.1236, allocations: 15.98 kB / 0.489 GB, free: 10.61 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.247e-05/0.1236, allocations: 11.94 kB / 0.4891 GB, free: 10.6 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.291e-05/0.1237, allocations: 19.92 kB / 0.4891 GB, free: 10.58 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.71e-05/0.1237, allocations: 0 / 0.4891 GB, free: 10.58 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.196e-05/0.1237, allocations: 4 kB / 0.4891 GB, free: 10.57 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.01e-05/0.1237, allocations: 7.922 kB / 0.4891 GB, free: 10.57 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.614e-05/0.1238, allocations: 19.88 kB / 0.4891 GB, free: 10.55 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001291/0.1239, allocations: 35.89 kB / 0.4891 GB, free: 10.51 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.139e-06/0.1239, allocations: 0 / 0.4891 GB, free: 10.51 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.777e-06/0.1239, allocations: 0 / 0.4891 GB, free: 10.51 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.353e-06/0.124, allocations: 3.938 kB / 0.4891 GB, free: 10.51 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.000648/0.1246, allocations: 351.3 kB / 0.4895 GB, free: 10.11 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.717e-05/0.1247, allocations: 19.89 kB / 0.4895 GB, free: 10.09 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.115e-05/0.1247, allocations: 30.75 kB / 0.4895 GB, free: 10.05 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.122e-05/0.1248, allocations: 8.844 kB / 0.4895 GB, free: 10.05 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003218/0.1251, allocations: 180.4 kB / 0.4897 GB, free: 9.832 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.286e-05/0.1251, allocations: 4.375 kB / 0.4897 GB, free: 9.828 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.982e-05/0.1252, allocations: 4.375 kB / 0.4897 GB, free: 9.824 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000202/0.1254, allocations: 72.75 kB / 0.4898 GB, free: 9.738 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.427e-05/0.1254, allocations: 7.938 kB / 0.4898 GB, free: 9.73 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.345e-05/0.1254, allocations: 4 kB / 0.4898 GB, free: 9.727 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.245e-06/0.1254, allocations: 0 / 0.4898 GB, free: 9.727 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001141/0.1256, allocations: 23.92 kB / 0.4898 GB, free: 9.703 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000734/0.1263, allocations: 453.1 kB / 0.4902 GB, free: 9.203 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001855/0.1265, allocations: 38.56 kB / 0.4903 GB, free: 9.156 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.485e-05/0.1266, allocations: 16.86 kB / 0.4903 GB, free: 9.137 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.928e-06/0.1266, allocations: 0 / 0.4903 GB, free: 9.137 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.777e-05/0.1266, allocations: 34.5 kB / 0.4903 GB, free: 9.094 MB / 382.1 MB Notification: Performance of pre-optimization done (n=3): time 9.02e-07/0.1266, allocations: 7.938 kB / 0.4903 GB, free: 9.086 MB / 382.1 MB Notification: Performance of matching and sorting (n=4): time 0.0005178/0.1272, allocations: 113.8 kB / 0.4905 GB, free: 8.969 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.075e-05/0.1272, allocations: 59.34 kB / 0.4905 GB, free: 8.898 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.993e-05/0.1273, allocations: 109.8 kB / 0.4906 GB, free: 8.781 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.375e-05/0.1273, allocations: 25.7 kB / 0.4906 GB, free: 8.75 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.156e-05/0.1274, allocations: 96.03 kB / 0.4907 GB, free: 8.652 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.098e-05/0.1274, allocations: 19.75 kB / 0.4907 GB, free: 8.633 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.749e-05/0.1275, allocations: 21.72 kB / 0.4908 GB, free: 8.605 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001285/0.1276, allocations: 322.8 kB / 0.4911 GB, free: 8.281 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.969e-05/0.1277, allocations: 8 kB / 0.4911 GB, free: 8.273 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.551e-05/0.1278, allocations: 43.42 kB / 0.4911 GB, free: 8.219 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001096/0.1279, allocations: 59.36 kB / 0.4912 GB, free: 8.148 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.492e-06/0.1279, allocations: 0 / 0.4912 GB, free: 8.148 MB / 382.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001878/0.1281, allocations: 81.61 kB / 0.4913 GB, free: 8.062 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.616e-05/0.1281, allocations: 4 kB / 0.4913 GB, free: 8.059 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.173e-06/0.1281, allocations: 4 kB / 0.4913 GB, free: 8.055 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.925e-05/0.1281, allocations: 3.984 kB / 0.4913 GB, free: 8.051 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.219e-05/0.1282, allocations: 12.03 kB / 0.4913 GB, free: 8.039 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.482e-06/0.1282, allocations: 8 kB / 0.4913 GB, free: 8.031 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.681e-05/0.1283, allocations: 0 / 0.4913 GB, free: 8.031 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.813e-06/0.1283, allocations: 4 kB / 0.4913 GB, free: 8.027 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 1 (integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * 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.116e-05/0.1284, allocations: 125.7 kB / 0.4914 GB, free: 7.895 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.997e-05/0.1284, allocations: 7.906 kB / 0.4914 GB, free: 7.887 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.222e-05/0.1285, allocations: 7.906 kB / 0.4914 GB, free: 7.871 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.1285, allocations: 0 / 0.4914 GB, free: 7.871 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.1285, allocations: 0 / 0.4914 GB, free: 7.871 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.1285, allocations: 0 / 0.4914 GB, free: 7.871 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001856/0.1287, allocations: 181.6 kB / 0.4916 GB, free: 7.645 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.737e-06/0.1287, allocations: 0 / 0.4916 GB, free: 7.645 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.707e-05/0.1288, allocations: 15.92 kB / 0.4916 GB, free: 7.629 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.636e-06/0.1288, allocations: 0 / 0.4916 GB, free: 7.629 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.237e-06/0.1288, allocations: 0 / 0.4916 GB, free: 7.629 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.691e-06/0.1288, allocations: 4.312 kB / 0.4916 GB, free: 7.625 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.1288, allocations: 4 kB / 0.4916 GB, free: 7.621 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002617/0.1291, allocations: 183.4 kB / 0.4918 GB, free: 7.426 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.989e-05/0.1291, allocations: 81.09 kB / 0.4919 GB, free: 7.328 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.746e-05/0.1292, allocations: 7.969 kB / 0.4919 GB, free: 7.32 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.785e-05/0.1292, allocations: 0 / 0.4919 GB, free: 7.32 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.348e-05/0.1293, allocations: 0 / 0.4919 GB, free: 7.32 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.707e-06/0.1293, allocations: 4 kB / 0.4919 GB, free: 7.316 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.455e-05/0.1293, allocations: 91.27 kB / 0.492 GB, free: 7.227 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1293, allocations: 0 / 0.492 GB, free: 7.227 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002276/0.1296, allocations: 11.94 kB / 0.492 GB, free: 7.215 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (gain.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 (4): * Single equations (assignments): 4 * 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.0005545/0.1301, allocations: 0.7046 MB / 0.4927 GB, free: 6.484 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001614/0.1303, allocations: 40.11 kB / 0.4927 GB, free: 6.445 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.1303, allocations: 0 / 0.4927 GB, free: 6.445 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 5.371e-05/0.1304, allocations: 28.31 kB / 0.4927 GB, free: 6.418 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003036/0.1307, allocations: 18.08 kB / 0.4928 GB, free: 6.406 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001934/0.1326, allocations: 1.376 MB / 0.4941 GB, free: 4.934 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004243/0.1331, allocations: 0.6807 MB / 0.4948 GB, free: 4.227 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 6.484e-05/0.1332, allocations: 7.984 kB / 0.4948 GB, free: 4.219 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.864e-05/0.1332, allocations: 11.44 kB / 0.4948 GB, free: 4.207 MB / 382.1 MB Notification: Performance of SimCode: time 3.5e-07/0.1332, allocations: 0 / 0.4948 GB, free: 4.207 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02149/0.1548, allocations: 1.576 MB / 0.4963 GB, free: 2.625 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.893/8.048, allocations: 5.094 kB / 0.4963 GB, free: 2.621 MB / 382.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.IntegratorForceState.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.IntegratorForceState.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.IntegratorForceState.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.IntegratorForceState.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Blocks.IntegratorForceState_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Blocks_IntegratorForceState_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Blocks_IntegratorForceState.fmu > ModelicaTest_3.2.3_ModelicaTest.Blocks.IntegratorForceState.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.IntegratorForceState_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/IntegratorForceState/IntegratorForceState.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Blocks.IntegratorForceState.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches