Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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.SimpleGearShift,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_SimpleGearShift",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.SimpleGearShift,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_SimpleGearShift",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001158/0.001158, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001307/0.001307, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.464/1.464, allocations: 227.4 MB / 246.8 MB, free: 10.63 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001303/0.001303, allocations: 60.12 kB / 307 MB, free: 0.5781 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1015/0.1028, allocations: 50.54 MB / 357.6 MB, free: 14.04 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.005245/0.1081, allocations: 2.945 MB / 360.5 MB, free: 11.08 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002044/0.1102, allocations: 1.052 MB / 361.6 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000331/0.1105, allocations: 4 kB / 361.6 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003497/0.1109, allocations: 79.3 kB / 361.7 MB, free: 9.938 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005765/0.1115, allocations: 162.8 kB / 361.8 MB, free: 9.777 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004455/0.112, allocations: 183.7 kB / 362 MB, free: 9.598 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006961/0.1127, allocations: 0.6047 MB / 362.6 MB, free: 8.992 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000254/0.113, allocations: 106.7 kB / 362.7 MB, free: 8.875 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004082/0.1134, allocations: 259.2 kB / 363 MB, free: 8.621 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004214/0.1138, allocations: 290.9 kB / 363.2 MB, free: 8.336 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001175/0.114, allocations: 52 kB / 363.3 MB, free: 8.285 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002261/0.1142, allocations: 99.98 kB / 363.4 MB, free: 8.188 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001832/0.1144, allocations: 123.6 kB / 363.5 MB, free: 8.066 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002765/0.1147, allocations: 242.9 kB / 363.8 MB, free: 7.828 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006315/0.1153, allocations: 0.5687 MB / 364.3 MB, free: 7.258 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.1153, allocations: 0 / 364.3 MB, free: 7.258 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.1153, allocations: 4 kB / 364.3 MB, free: 7.254 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.613e-05/0.1153, allocations: 0 / 364.3 MB, free: 7.254 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.001592/0.1169, allocations: 0.7759 MB / 365.1 MB, free: 6.43 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.127e-05/0.117, allocations: 12.03 kB / 365.1 MB, free: 6.418 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001455/0.1171, allocations: 75.7 kB / 365.2 MB, free: 6.332 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001213/0.1173, allocations: 52.38 kB / 365.2 MB, free: 6.281 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004757/0.1178, allocations: 322.5 kB / 365.6 MB, free: 5.926 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.988e-05/0.1178, allocations: 25.38 kB / 365.6 MB, free: 5.902 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.92e-05/0.1179, allocations: 40.38 kB / 365.6 MB, free: 5.863 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009221/0.1188, allocations: 446.4 kB / 366.1 MB, free: 5.418 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.414e-05/0.1188, allocations: 7.906 kB / 366.1 MB, free: 5.41 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.966e-05/0.1189, allocations: 19.92 kB / 366.1 MB, free: 5.391 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.103e-05/0.1189, allocations: 8 kB / 366.1 MB, free: 5.383 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001043/0.12, allocations: 455.7 kB / 366.5 MB, free: 4.938 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002613/0.1226, allocations: 1.289 MB / 367.8 MB, free: 3.578 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009099/0.1235, allocations: 404.3 kB / 368.2 MB, free: 3.172 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004808/0.124, allocations: 242.1 kB / 368.5 MB, free: 2.934 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.244e-05/0.1241, allocations: 16.41 kB / 368.5 MB, free: 2.918 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.711e-05/0.1241, allocations: 39 kB / 368.5 MB, free: 2.871 MB / 302.1 MB Notification: Performance of pre-optimization done (n=50): time 2.154e-06/0.1241, allocations: 0 / 368.5 MB, free: 2.871 MB / 302.1 MB Notification: Performance of matching and sorting (n=54): time 0.005627/0.1297, allocations: 2.256 MB / 370.8 MB, free: 496 kB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.922e-05/0.1298, allocations: 63.84 kB / 370.8 MB, free: 416 kB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002974/0.1301, allocations: 270.7 kB / 371.1 MB, free: 140 kB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.11e-05/0.1302, allocations: 41.69 kB / 371.1 MB, free: 92 kB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.1865/0.3167, allocations: 169.8 kB / 371.3 MB, free: 20.54 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003309/0.317, allocations: 180.5 kB / 371.5 MB, free: 20.47 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000337/0.3174, allocations: 100 kB / 371.6 MB, free: 20.45 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.021e-05/0.3175, allocations: 346.2 kB / 371.9 MB, free: 20.14 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005833/0.3181, allocations: 222.1 kB / 372.1 MB, free: 20.14 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006856/0.3188, allocations: 289.7 kB / 372.4 MB, free: 20.08 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00105/0.3198, allocations: 399.6 kB / 372.8 MB, free: 20.03 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.28e-06/0.3199, allocations: 1.938 kB / 372.8 MB, free: 20.03 MB / 302.1 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001819/0.3217, allocations: 0.73 MB / 373.5 MB, free: 19.79 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.315e-05/0.3217, allocations: 8.312 kB / 373.5 MB, free: 19.79 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.746e-06/0.3217, allocations: 1.344 kB / 373.5 MB, free: 19.79 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001189/0.3229, allocations: 432.4 kB / 374 MB, free: 19.65 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003372/0.3233, allocations: 69.23 kB / 374 MB, free: 19.64 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002434/0.3257, allocations: 3.652 MB / 377.7 MB, free: 16.15 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000588/0.3263, allocations: 80.31 kB / 377.8 MB, free: 16.14 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.256e-05/0.3264, allocations: 23.17 kB / 377.8 MB, free: 16.13 MB / 302.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: 16 (brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free,clutch.mode,$PRE.clutch.mode,clutch.locked,clutch.startBackward,$PRE.clutch.startBackward,clutch.startForward,$PRE.clutch.startForward,clutch.free) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (44): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,21)} Notification: Performance of prepare postOptimizeDAE: time 0.0002143/0.3266, allocations: 170 kB / 377.9 MB, free: 15.98 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.277e-05/0.3267, allocations: 33 kB / 378 MB, free: 15.96 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001628/0.3283, allocations: 0.7212 MB / 378.7 MB, free: 15.64 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.424e-06/0.3284, allocations: 9.438 kB / 378.7 MB, free: 15.64 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.49e-06/0.3284, allocations: 2.031 kB / 378.7 MB, free: 15.64 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.646e-06/0.3284, allocations: 2.344 kB / 378.7 MB, free: 15.64 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002228/0.3306, allocations: 1.299 MB / 380 MB, free: 14.95 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.839e-06/0.3306, allocations: 1.453 kB / 380 MB, free: 14.95 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003105/0.331, allocations: 59.55 kB / 380.1 MB, free: 14.94 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009791/0.3319, allocations: 412.2 kB / 380.5 MB, free: 14.8 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.879e-05/0.332, allocations: 18.53 kB / 380.5 MB, free: 14.79 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002211/0.3342, allocations: 3.606 MB / 384.1 MB, free: 11.31 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.3342, allocations: 2.156 kB / 384.1 MB, free: 11.31 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002009/0.3363, allocations: 1.026 MB / 385.1 MB, free: 10.79 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001977/0.3365, allocations: 160.5 kB / 385.3 MB, free: 10.66 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.094e-05/0.3366, allocations: 20.02 kB / 385.3 MB, free: 10.65 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005266/0.3371, allocations: 74.11 kB / 385.4 MB, free: 10.64 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002349/0.3373, allocations: 94.34 kB / 385.5 MB, free: 10.61 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.926e-05/0.3374, allocations: 24.36 kB / 385.5 MB, free: 10.61 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002314/0.3376, allocations: 195.3 kB / 385.7 MB, free: 10.49 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.3377, allocations: 0 / 385.7 MB, free: 10.49 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.00056/0.3382, allocations: 122.7 kB / 385.8 MB, free: 10.47 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (load.w,quadraticSpeedDependentTorque.phi,clutch.phi_rel,clutch.w_rel) * Number of discrete variables: 10 (clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode) * Number of discrete states: 6 (clutch.mode,clutch.startBackward,brake.mode,brake.startBackward,brake.startForward,clutch.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,21)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002966/0.3412, allocations: 1.829 MB / 387.6 MB, free: 9.355 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00178/0.343, allocations: 0.817 MB / 388.4 MB, free: 8.926 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.343, allocations: 1.156 kB / 388.5 MB, free: 8.926 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008997/0.3439, allocations: 0.5408 MB / 389 MB, free: 8.59 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006433/0.3446, allocations: 77.14 kB / 389.1 MB, free: 8.555 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007526/0.3521, allocations: 4.32 MB / 393.4 MB, free: 5.891 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002985/0.3524, allocations: 0.8176 MB / 394.2 MB, free: 5.18 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001775/0.3526, allocations: 39.7 kB / 394.2 MB, free: 5.164 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001694/0.3528, allocations: 121.3 kB / 394.4 MB, free: 5.082 MB / 302.1 MB Notification: Performance of SimCode: time 1.272e-06/0.3528, allocations: 0 / 394.4 MB, free: 5.082 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04299/0.3958, allocations: 13.47 MB / 407.8 MB, free: 12.21 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.11/12.5, allocations: 11.23 kB / 407.8 MB, free: 12.2 MB / 318.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.01 Modelica_trunk_Modelica_Mechanics_Rotational_Examples_SimpleGearShift.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/SimpleGearShift/SimpleGearShift.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches