Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001913/0.001913, allocations: 132.4 kB / 17.8 MB, free: 5.219 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002231/0.002231, allocations: 210.5 kB / 20.75 MB, free: 2.27 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.603/1.603, allocations: 230.5 MB / 254 MB, free: 15.16 MB / 206.1 MB " [Timeout remaining time 178] 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(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001927/0.001927, allocations: 63.89 kB / 373 MB, free: 10.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1014/0.1033, allocations: 53.38 MB / 426.3 MB, free: 4.648 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.004086/0.1074, allocations: 2.344 MB / 428.7 MB, free: 2.293 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001611/0.109, allocations: 0.8568 MB / 429.5 MB, free: 1.43 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000145/0.1091, allocations: 7.938 kB / 429.6 MB, free: 1.422 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003082/0.1094, allocations: 55.56 kB / 429.6 MB, free: 1.367 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000314/0.1097, allocations: 103.2 kB / 429.7 MB, free: 1.266 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002382/0.11, allocations: 83.83 kB / 429.8 MB, free: 1.184 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003564/0.1103, allocations: 275.4 kB / 430.1 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001578/0.1105, allocations: 44.38 kB / 430.1 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002404/0.1107, allocations: 131.5 kB / 430.2 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002505/0.111, allocations: 127.5 kB / 430.4 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.078e-05/0.111, allocations: 20 kB / 430.4 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001662/0.1112, allocations: 75.98 kB / 430.5 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.578e-05/0.1113, allocations: 63.75 kB / 430.5 MB, free: 468 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001198/0.1114, allocations: 111.4 kB / 430.6 MB, free: 356 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004367/0.1119, allocations: 310.8 kB / 430.9 MB, free: 44 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.439e-06/0.1119, allocations: 0 / 430.9 MB, free: 44 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1119, allocations: 0 / 430.9 MB, free: 44 kB / 350.1 MB Notification: Performance of Transformations before backend: time 7.785e-06/0.1119, allocations: 4 kB / 430.9 MB, free: 40 kB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 46 * Number of variables: 46 Notification: Performance of Generate backend data structure: time 0.0009806/0.1128, allocations: 0.5454 MB / 431.5 MB, free: 15.44 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.984e-05/0.1129, allocations: 8.031 kB / 431.5 MB, free: 15.43 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.872e-05/0.113, allocations: 54.73 kB / 431.5 MB, free: 15.37 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000169/0.1131, allocations: 32.78 kB / 431.6 MB, free: 15.34 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004047/0.1135, allocations: 251.9 kB / 431.8 MB, free: 15.05 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.292e-05/0.1136, allocations: 20.75 kB / 431.8 MB, free: 15.03 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.065e-05/0.1136, allocations: 24.33 kB / 431.9 MB, free: 15.01 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004103/0.114, allocations: 210.8 kB / 432.1 MB, free: 14.79 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.702e-05/0.114, allocations: 7.938 kB / 432.1 MB, free: 14.78 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.112e-05/0.1141, allocations: 4 kB / 432.1 MB, free: 14.78 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.155e-06/0.1141, allocations: 4 kB / 432.1 MB, free: 14.77 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003363/0.1144, allocations: 159.2 kB / 432.2 MB, free: 14.62 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001227/0.1156, allocations: 0.7703 MB / 433 MB, free: 13.78 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003816/0.116, allocations: 138.5 kB / 433.1 MB, free: 13.64 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001476/0.1162, allocations: 72.94 kB / 433.2 MB, free: 13.56 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.603e-05/0.1162, allocations: 8 kB / 433.2 MB, free: 13.55 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.009e-05/0.1162, allocations: 42.84 kB / 433.3 MB, free: 13.5 MB / 366.1 MB Notification: Performance of pre-optimization done (n=19): time 1.422e-06/0.1162, allocations: 0 / 433.3 MB, free: 13.5 MB / 366.1 MB Notification: Performance of matching and sorting (n=21): time 0.002014/0.1182, allocations: 0.9961 MB / 434.3 MB, free: 12.4 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.98e-05/0.1183, allocations: 55.41 kB / 434.3 MB, free: 12.33 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000267/0.1185, allocations: 214.8 kB / 434.5 MB, free: 12.11 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.817e-05/0.1186, allocations: 33.7 kB / 434.6 MB, free: 12.07 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001021/0.1187, allocations: 144.4 kB / 434.7 MB, free: 11.93 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.304e-05/0.1188, allocations: 75.38 kB / 434.8 MB, free: 11.85 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.646e-05/0.1188, allocations: 53.7 kB / 434.8 MB, free: 11.79 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001452/0.119, allocations: 326.8 kB / 435.1 MB, free: 11.46 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001608/0.1192, allocations: 67.97 kB / 435.2 MB, free: 11.4 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000186/0.1193, allocations: 107.4 kB / 435.3 MB, free: 11.28 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003092/0.1197, allocations: 159.3 kB / 435.5 MB, free: 11.11 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.293e-06/0.1197, allocations: 0 / 435.5 MB, free: 11.11 MB / 366.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005171/0.1202, allocations: 282 kB / 435.7 MB, free: 10.83 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.81e-05/0.1202, allocations: 4 kB / 435.7 MB, free: 10.82 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.942e-06/0.1202, allocations: 64 / 435.7 MB, free: 10.82 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002213/0.1204, allocations: 64.81 kB / 435.8 MB, free: 10.76 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000155/0.1206, allocations: 31.98 kB / 435.8 MB, free: 10.73 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002003/0.1226, allocations: 1.815 MB / 437.7 MB, free: 8.777 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001967/0.1228, allocations: 23.98 kB / 437.7 MB, free: 8.754 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.078e-05/0.1228, allocations: 12 kB / 437.7 MB, free: 8.742 MB / 366.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: 6 (oneWayClutch.free,oneWayClutch.stuck,$PRE.oneWayClutch.stuck,oneWayClutch.locked,oneWayClutch.startForward,$PRE.oneWayClutch.startForward) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0001433/0.1229, allocations: 139.7 kB / 437.8 MB, free: 8.598 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.081e-05/0.123, allocations: 23.84 kB / 437.9 MB, free: 8.574 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.903e-05/0.1231, allocations: 21.88 kB / 437.9 MB, free: 8.547 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.647e-06/0.1231, allocations: 4 kB / 437.9 MB, free: 8.543 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.854e-06/0.1231, allocations: 0 / 437.9 MB, free: 8.543 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.749e-06/0.1231, allocations: 3.984 kB / 437.9 MB, free: 8.539 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009411/0.124, allocations: 0.6103 MB / 438.5 MB, free: 7.859 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-06/0.124, allocations: 0 / 438.5 MB, free: 7.859 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001817/0.1242, allocations: 43.92 kB / 438.5 MB, free: 7.816 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001579/0.1244, allocations: 52.83 kB / 438.6 MB, free: 7.762 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.349e-05/0.1244, allocations: 15.98 kB / 438.6 MB, free: 7.746 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001695/0.1261, allocations: 1.661 MB / 440.3 MB, free: 5.949 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.547e-06/0.1261, allocations: 7.969 kB / 440.3 MB, free: 5.941 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007399/0.1268, allocations: 421.7 kB / 440.7 MB, free: 5.508 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001191/0.1269, allocations: 113 kB / 440.8 MB, free: 5.379 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.582e-05/0.127, allocations: 11.92 kB / 440.8 MB, free: 5.367 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001929/0.1272, allocations: 19.98 kB / 440.8 MB, free: 5.348 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001553/0.1273, allocations: 67.91 kB / 440.9 MB, free: 5.281 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.426e-05/0.1273, allocations: 4 kB / 440.9 MB, free: 5.277 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001793/0.1275, allocations: 160.6 kB / 441 MB, free: 5.121 MB / 366.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.1275, allocations: 4 kB / 441.1 MB, free: 5.117 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004299/0.1279, allocations: 68 kB / 441.1 MB, free: 5.051 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (inertiaOut.w,oneWayClutch.phi_rel,oneWayClutch.w_rel,torqueLoad.phi) * Number of discrete variables: 3 (oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck) * Number of discrete states: 2 (oneWayClutch.stuck,oneWayClutch.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002301/0.1302, allocations: 1.197 MB / 442.3 MB, free: 3.93 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000672/0.1309, allocations: 310.3 kB / 442.6 MB, free: 3.617 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.033e-06/0.1309, allocations: 0 / 442.6 MB, free: 3.617 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003549/0.1313, allocations: 230.4 kB / 442.8 MB, free: 3.379 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004219/0.1317, allocations: 49.48 kB / 442.9 MB, free: 3.336 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003885/0.1356, allocations: 2.662 MB / 445.6 MB, free: 0.5625 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1886/0.3241, allocations: 0.7462 MB / 446.3 MB, free: 23.45 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001761/0.3243, allocations: 27.23 kB / 446.3 MB, free: 23.44 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001423/0.3245, allocations: 67.3 kB / 446.4 MB, free: 23.43 MB / 366.1 MB Notification: Performance of SimCode: time 9.12e-07/0.3245, allocations: 0 / 446.4 MB, free: 23.43 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04889/0.3733, allocations: 6.562 MB / 453 MB, free: 22.72 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.79/12.16, allocations: 5.766 kB / 453 MB, free: 22.72 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_trunk_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/OneWayClutchDisengaged/OneWayClutchDisengaged.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable inertiaIn.phi in file Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.csv. Warning: Get data of variable inertiaIn.phi from file Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.csv failed! Error: Could not read variable inertiaIn.w in file Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.csv. Warning: Get data of variable inertiaIn.w from file Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.914058160036802]