Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.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.001252/0.001252, allocations: 115.7 kB / 18.49 MB, free: 4.566 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.001292/0.001292, allocations: 190.7 kB / 21.43 MB, free: 1.641 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.393/1.393, allocations: 225.6 MB / 249.8 MB, free: 3.621 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.Mechanics.Rotational.Examples.EddyCurrentBrake,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_EddyCurrentBrake",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_EddyCurrentBrake",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00148/0.00148, allocations: 47.92 kB / 366.3 MB, free: 0.8633 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1049/0.1064, allocations: 52.14 MB / 418.5 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake): time 0.003026/0.1094, allocations: 1.776 MB / 420.2 MB, free: 10.84 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001015/0.1104, allocations: 0.6427 MB / 420.9 MB, free: 10.19 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.463e-05/0.1105, allocations: 3.938 kB / 420.9 MB, free: 10.19 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001202/0.1106, allocations: 19.84 kB / 420.9 MB, free: 10.17 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.556e-05/0.1107, allocations: 35.72 kB / 420.9 MB, free: 10.13 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002267/0.1109, allocations: 55.8 kB / 421 MB, free: 10.08 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001743/0.1111, allocations: 115.4 kB / 421.1 MB, free: 9.965 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001081/0.1112, allocations: 23.97 kB / 421.1 MB, free: 9.941 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.341e-05/0.1113, allocations: 43.8 kB / 421.2 MB, free: 9.898 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.435e-05/0.1114, allocations: 51.77 kB / 421.2 MB, free: 9.848 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.957e-05/0.1114, allocations: 8 kB / 421.2 MB, free: 9.84 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.55e-05/0.1115, allocations: 27.98 kB / 421.3 MB, free: 9.812 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.162e-05/0.1115, allocations: 15.92 kB / 421.3 MB, free: 9.797 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.358e-05/0.1116, allocations: 51.81 kB / 421.3 MB, free: 9.746 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002112/0.1118, allocations: 131.5 kB / 421.5 MB, free: 9.617 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.1118, allocations: 0 / 421.5 MB, free: 9.617 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.1118, allocations: 0 / 421.5 MB, free: 9.617 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.799e-06/0.1118, allocations: 0 / 421.5 MB, free: 9.617 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: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.0005778/0.1124, allocations: 411.2 kB / 421.9 MB, free: 9.168 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.988e-05/0.1124, allocations: 8.031 kB / 421.9 MB, free: 9.16 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.279e-05/0.1124, allocations: 8.375 kB / 421.9 MB, free: 9.152 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.303e-05/0.1125, allocations: 38.73 kB / 421.9 MB, free: 9.105 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001759/0.1126, allocations: 24.88 kB / 421.9 MB, free: 9.082 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002418/0.1129, allocations: 200.1 kB / 422.1 MB, free: 8.848 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.471e-05/0.1129, allocations: 8.312 kB / 422.1 MB, free: 8.84 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.289e-05/0.1129, allocations: 15.95 kB / 422.2 MB, free: 8.824 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000186/0.1131, allocations: 89.66 kB / 422.2 MB, free: 8.73 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.489e-05/0.1131, allocations: 4 kB / 422.2 MB, free: 8.727 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.104e-05/0.1131, allocations: 4 kB / 422.2 MB, free: 8.723 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.907e-06/0.1131, allocations: 0 / 422.2 MB, free: 8.723 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001392/0.1133, allocations: 67.84 kB / 422.3 MB, free: 8.656 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00076/0.114, allocations: 481.1 kB / 422.8 MB, free: 8.125 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002464/0.1143, allocations: 90.61 kB / 422.9 MB, free: 8.027 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.486e-05/0.1143, allocations: 24.86 kB / 422.9 MB, free: 8 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.408e-06/0.1144, allocations: 0 / 422.9 MB, free: 8 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.444e-05/0.1144, allocations: 34.56 kB / 422.9 MB, free: 7.957 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 1.032e-06/0.1144, allocations: 3.938 kB / 422.9 MB, free: 7.953 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002439/0.1146, allocations: 101.9 kB / 423 MB, free: 7.848 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.647e-05/0.1147, allocations: 59.41 kB / 423.1 MB, free: 7.777 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001101/0.1148, allocations: 113.8 kB / 423.2 MB, free: 7.656 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.822e-05/0.1148, allocations: 33.7 kB / 423.2 MB, free: 7.617 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.302e-05/0.1149, allocations: 108 kB / 423.3 MB, free: 7.508 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.586e-05/0.1149, allocations: 31.73 kB / 423.4 MB, free: 7.477 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.527e-05/0.115, allocations: 21.72 kB / 423.4 MB, free: 7.449 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001465/0.1151, allocations: 322.8 kB / 423.7 MB, free: 7.125 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.076e-05/0.1152, allocations: 27.98 kB / 423.7 MB, free: 7.098 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.172e-05/0.1152, allocations: 55.36 kB / 423.8 MB, free: 7.031 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001217/0.1154, allocations: 75.38 kB / 423.9 MB, free: 6.945 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.1154, allocations: 0 / 423.9 MB, free: 6.945 MB / 350.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001765/0.1155, allocations: 117.5 kB / 424 MB, free: 6.824 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.458e-05/0.1155, allocations: 4 kB / 424 MB, free: 6.82 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.188e-06/0.1156, allocations: 4.094 kB / 424 MB, free: 6.816 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.881e-05/0.1156, allocations: 7.938 kB / 424 MB, free: 6.809 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001207/0.1157, allocations: 23.94 kB / 424 MB, free: 6.785 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.264e-06/0.1157, allocations: 3.984 kB / 424 MB, free: 6.781 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.362e-05/0.1158, allocations: 7.953 kB / 424 MB, free: 6.773 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.181e-05/0.1158, allocations: 8 kB / 424 MB, free: 6.766 MB / 350.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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.144e-05/0.1159, allocations: 118.4 kB / 424.2 MB, free: 6.641 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.051e-05/0.1159, allocations: 7.953 kB / 424.2 MB, free: 6.633 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.136e-05/0.1159, allocations: 16.31 kB / 424.2 MB, free: 6.617 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.764e-06/0.1159, allocations: 7.938 kB / 424.2 MB, free: 6.609 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.1159, allocations: 4 kB / 424.2 MB, free: 6.605 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.635e-06/0.1159, allocations: 0 / 424.2 MB, free: 6.605 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002315/0.1162, allocations: 197.6 kB / 424.4 MB, free: 6.363 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.1162, allocations: 3.938 kB / 424.4 MB, free: 6.359 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001267/0.1163, allocations: 19.98 kB / 424.4 MB, free: 6.34 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.378e-06/0.1163, allocations: 4 kB / 424.4 MB, free: 6.336 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.338e-05/0.1163, allocations: 3.938 kB / 424.4 MB, free: 6.332 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.1163, allocations: 0 / 424.4 MB, free: 6.332 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.1163, allocations: 0 / 424.4 MB, free: 6.332 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002528/0.1166, allocations: 207.5 kB / 424.6 MB, free: 6.113 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.614e-05/0.1166, allocations: 81.06 kB / 424.7 MB, free: 6.016 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.823e-05/0.1166, allocations: 3.938 kB / 424.7 MB, free: 6.012 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.634e-05/0.1167, allocations: 11.94 kB / 424.7 MB, free: 6 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.731e-05/0.1167, allocations: 4.031 kB / 424.7 MB, free: 5.996 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.332e-06/0.1167, allocations: 4 kB / 424.7 MB, free: 5.992 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.88e-05/0.1168, allocations: 91.27 kB / 424.8 MB, free: 5.902 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1168, allocations: 0 / 424.8 MB, free: 5.902 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002611/0.1171, allocations: 35.89 kB / 424.8 MB, free: 5.867 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (eddyCurrentTorque.phi,inertia.w,heatCapacitor.T) * 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 (8): * Single equations (assignments): 8 * 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.0005471/0.1176, allocations: 0.7358 MB / 425.6 MB, free: 5.105 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001555/0.1178, allocations: 55.91 kB / 425.6 MB, free: 5.051 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.1178, allocations: 0 / 425.6 MB, free: 5.051 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.919e-05/0.1178, allocations: 36.11 kB / 425.7 MB, free: 5.016 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003122/0.1181, allocations: 29.81 kB / 425.7 MB, free: 4.992 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001888/0.12, allocations: 1.717 MB / 427.4 MB, free: 3.176 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003314/0.1203, allocations: 0.7002 MB / 428.1 MB, free: 2.449 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.372e-05/0.1204, allocations: 8.375 kB / 428.1 MB, free: 2.441 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.814e-05/0.1205, allocations: 31.42 kB / 428.2 MB, free: 2.41 MB / 350.1 MB Notification: Performance of SimCode: time 2.8e-07/0.1205, allocations: 0 / 428.2 MB, free: 2.41 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02038/0.1408, allocations: 2.346 MB / 430.5 MB, free: 192 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.721/7.862, allocations: 10.8 kB / 430.5 MB, free: 184 kB / 350.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_EddyCurrentBrake_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_EddyCurrentBrake.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/EddyCurrentBrake/EddyCurrentBrake.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.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.150162750971504]