Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001775/0.001775, allocations: 115.7 kB / 18.49 MB, free: 4.59 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001976/0.001976, allocations: 194.5 kB / 21.43 MB, free: 1.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.364/1.364, allocations: 225.6 MB / 249.8 MB, free: 3.727 MB / 190.1 MB " [Timeout remaining time 178] 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(Modelica.Blocks.Examples.InverseModel,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_InverseModel",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.InverseModel,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_InverseModel",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001564/0.001564, allocations: 48.08 kB / 366.3 MB, free: 0.8867 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09311/0.09467, allocations: 52.15 MB / 418.5 MB, free: 12.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.InverseModel): time 0.002957/0.09763, allocations: 1.701 MB / 420.2 MB, free: 10.94 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009618/0.09859, allocations: 490.8 kB / 420.7 MB, free: 10.46 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.523e-05/0.09868, allocations: 3.938 kB / 420.7 MB, free: 10.45 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001033/0.09879, allocations: 15.86 kB / 420.7 MB, free: 10.44 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001787/0.09897, allocations: 27.78 kB / 420.7 MB, free: 10.41 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001743/0.09914, allocations: 47.94 kB / 420.7 MB, free: 10.36 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001755/0.09932, allocations: 95.69 kB / 420.8 MB, free: 10.27 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001076/0.09942, allocations: 29.11 kB / 420.9 MB, free: 10.24 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.908e-05/0.09952, allocations: 39.8 kB / 420.9 MB, free: 10.2 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.416e-05/0.09962, allocations: 51.75 kB / 421 MB, free: 10.15 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.049e-05/0.09964, allocations: 4 kB / 421 MB, free: 10.15 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.878e-05/0.09966, allocations: 8 kB / 421 MB, free: 10.14 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.295e-05/0.09972, allocations: 19.92 kB / 421 MB, free: 10.12 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.093e-05/0.09977, allocations: 35.75 kB / 421 MB, free: 10.09 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001587/0.09993, allocations: 91.45 kB / 421.1 MB, free: 9.996 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.09993, allocations: 4 kB / 421.1 MB, free: 9.992 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.09993, allocations: 4 kB / 421.1 MB, free: 9.988 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.01e-06/0.09994, allocations: 0 / 421.1 MB, free: 9.988 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0005908/0.1005, allocations: 410.9 kB / 421.5 MB, free: 9.539 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.426e-05/0.1006, allocations: 8.031 kB / 421.5 MB, free: 9.531 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.779e-05/0.1006, allocations: 4.188 kB / 421.5 MB, free: 9.527 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.722e-05/0.1006, allocations: 38.73 kB / 421.6 MB, free: 9.48 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.331e-05/0.1007, allocations: 12.89 kB / 421.6 MB, free: 9.469 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002701/0.1009, allocations: 212.1 kB / 421.8 MB, free: 9.223 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.858e-06/0.1009, allocations: 8 kB / 421.8 MB, free: 9.215 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.894e-05/0.101, allocations: 8 kB / 421.8 MB, free: 9.207 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001787/0.1011, allocations: 77.59 kB / 421.9 MB, free: 9.125 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.316e-06/0.1011, allocations: 0 / 421.9 MB, free: 9.125 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.119e-05/0.1012, allocations: 4 kB / 421.9 MB, free: 9.121 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.309e-06/0.1012, allocations: 7.938 kB / 421.9 MB, free: 9.113 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001238/0.1013, allocations: 47.89 kB / 421.9 MB, free: 9.066 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005821/0.1019, allocations: 404.1 kB / 422.3 MB, free: 8.609 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001573/0.102, allocations: 62.56 kB / 422.4 MB, free: 8.539 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.163e-05/0.1021, allocations: 28.8 kB / 422.4 MB, free: 8.508 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.475e-05/0.1021, allocations: 3.984 kB / 422.4 MB, free: 8.504 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.428e-05/0.1021, allocations: 34.56 kB / 422.5 MB, free: 8.461 MB / 350.1 MB Notification: Performance of pre-optimization done (n=5): time 1.212e-06/0.1021, allocations: 0 / 422.5 MB, free: 8.461 MB / 350.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002997/0.1024, allocations: 97.56 kB / 422.6 MB, free: 8.359 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.01e-05/0.1025, allocations: 59.34 kB / 422.6 MB, free: 8.289 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001309/0.1026, allocations: 143.1 kB / 422.8 MB, free: 8.141 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.178e-05/0.1026, allocations: 25.7 kB / 422.8 MB, free: 8.109 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.439e-05/0.1027, allocations: 108.2 kB / 422.9 MB, free: 8 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.156e-05/0.1027, allocations: 27.8 kB / 422.9 MB, free: 7.973 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.284e-05/0.1028, allocations: 17.72 kB / 422.9 MB, free: 7.949 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000153/0.1029, allocations: 326.8 kB / 423.2 MB, free: 7.621 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.458e-05/0.103, allocations: 19.98 kB / 423.3 MB, free: 7.602 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.256e-05/0.1031, allocations: 19.98 kB / 423.3 MB, free: 7.582 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00012/0.1032, allocations: 52.83 kB / 423.3 MB, free: 7.527 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.1032, allocations: 0 / 423.3 MB, free: 7.527 MB / 350.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001812/0.1034, allocations: 89.58 kB / 423.4 MB, free: 7.434 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.669e-05/0.1034, allocations: 7.984 kB / 423.4 MB, free: 7.426 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.641e-06/0.1034, allocations: 0 / 423.4 MB, free: 7.426 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.961e-05/0.1034, allocations: 0 / 423.4 MB, free: 7.426 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002338/0.1036, allocations: 35.97 kB / 423.5 MB, free: 7.391 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.26e-06/0.1036, allocations: 0 / 423.5 MB, free: 7.391 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.414e-05/0.1037, allocations: 11.95 kB / 423.5 MB, free: 7.379 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.265e-06/0.1037, allocations: 0 / 423.5 MB, free: 7.379 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * 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.713e-05/0.1038, allocations: 125.8 kB / 423.6 MB, free: 7.246 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.339e-05/0.1038, allocations: 7.953 kB / 423.6 MB, free: 7.238 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.664e-05/0.1039, allocations: 12.3 kB / 423.6 MB, free: 7.219 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.514e-06/0.1039, allocations: 256 / 423.6 MB, free: 7.219 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.903e-06/0.1039, allocations: 4 kB / 423.6 MB, free: 7.215 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.599e-06/0.1039, allocations: 4 kB / 423.6 MB, free: 7.211 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002296/0.1041, allocations: 197.6 kB / 423.8 MB, free: 6.969 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/0.1041, allocations: 0 / 423.8 MB, free: 6.969 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001537/0.1043, allocations: 23.92 kB / 423.8 MB, free: 6.945 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.564e-06/0.1043, allocations: 0 / 423.8 MB, free: 6.945 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.221e-05/0.1043, allocations: 8 kB / 423.9 MB, free: 6.938 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.447e-06/0.1043, allocations: 3.984 kB / 423.9 MB, free: 6.934 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.1043, allocations: 0 / 423.9 MB, free: 6.934 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002975/0.1046, allocations: 195.4 kB / 424.1 MB, free: 6.727 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.879e-05/0.1046, allocations: 96.97 kB / 424.1 MB, free: 6.613 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.111e-05/0.1047, allocations: 4 kB / 424.1 MB, free: 6.609 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.273e-05/0.1048, allocations: 4 kB / 424.2 MB, free: 6.605 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.494e-05/0.1048, allocations: 8 kB / 424.2 MB, free: 6.598 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.645e-06/0.1048, allocations: 3.984 kB / 424.2 MB, free: 6.594 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.949e-05/0.1049, allocations: 111.8 kB / 424.3 MB, free: 6.488 MB / 350.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.1049, allocations: 0 / 424.3 MB, free: 6.488 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002403/0.1051, allocations: 23.88 kB / 424.3 MB, free: 6.465 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (firstOrder1.y,firstOrder2.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 (5): * Single equations (assignments): 5 * 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.0006481/0.1058, allocations: 0.7319 MB / 425 MB, free: 5.707 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001737/0.1059, allocations: 52.14 kB / 425.1 MB, free: 5.656 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.1059, allocations: 0 / 425.1 MB, free: 5.656 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.078e-05/0.106, allocations: 23.98 kB / 425.1 MB, free: 5.633 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003099/0.1063, allocations: 20.03 kB / 425.1 MB, free: 5.617 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001856/0.1082, allocations: 1.577 MB / 426.7 MB, free: 3.961 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003302/0.1085, allocations: 0.7047 MB / 427.4 MB, free: 3.23 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.879e-05/0.1086, allocations: 11.98 kB / 427.4 MB, free: 3.219 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.338e-05/0.1086, allocations: 31.42 kB / 427.4 MB, free: 3.188 MB / 350.1 MB Notification: Performance of SimCode: time 7.42e-07/0.1086, allocations: 0 / 427.4 MB, free: 3.188 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01938/0.128, allocations: 2.35 MB / 429.8 MB, free: 0.918 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.632/7.76, allocations: 8 kB / 429.8 MB, free: 0.9102 MB / 350.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_InverseModel_fmu --startTime=0 --stopTime=1 --stepSize=0.00019992 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Blocks_Examples_InverseModel.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/InverseModel/InverseModel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 10.10816550796153]