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) 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.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001554/0.001554, allocations: 105.2 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001426/0.001426, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.453/1.453, allocations: 227.4 MB / 246.8 MB, free: 10.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001365/0.001365, allocations: 62.39 kB / 307 MB, free: 0.5117 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1099/0.1113, allocations: 50.54 MB / 357.6 MB, free: 13.97 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.005323/0.1166, allocations: 2.315 MB / 359.9 MB, free: 11.64 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001824/0.1185, allocations: 0.8607 MB / 360.8 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002374/0.1188, allocations: 4 kB / 360.8 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003581/0.1192, allocations: 51.58 kB / 360.8 MB, free: 10.72 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004802/0.1197, allocations: 103.2 kB / 360.9 MB, free: 10.62 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002634/0.12, allocations: 79.84 kB / 361 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003956/0.1204, allocations: 279.4 kB / 361.3 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002603/0.1206, allocations: 72.28 kB / 361.3 MB, free: 10.19 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002649/0.1209, allocations: 127.5 kB / 361.5 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002327/0.1211, allocations: 123.5 kB / 361.6 MB, free: 9.945 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.629e-05/0.1212, allocations: 20 kB / 361.6 MB, free: 9.926 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001908/0.1214, allocations: 83.95 kB / 361.7 MB, free: 9.844 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000152/0.1216, allocations: 51.84 kB / 361.7 MB, free: 9.793 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001259/0.1217, allocations: 123.4 kB / 361.9 MB, free: 9.672 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004016/0.1221, allocations: 299.3 kB / 362.1 MB, free: 9.379 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.721e-06/0.1221, allocations: 3.984 kB / 362.1 MB, free: 9.375 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.1221, allocations: 0 / 362.1 MB, free: 9.375 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.027e-05/0.1222, allocations: 0 / 362.1 MB, free: 9.375 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: 46 * Number of variables: 46 Notification: Performance of Generate backend data structure: time 0.0008922/0.123, allocations: 0.538 MB / 362.7 MB, free: 8.785 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.245e-05/0.1231, allocations: 8.031 kB / 362.7 MB, free: 8.777 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.501e-05/0.1232, allocations: 54.73 kB / 362.7 MB, free: 8.715 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001679/0.1233, allocations: 36.64 kB / 362.8 MB, free: 8.68 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003475/0.1237, allocations: 243.8 kB / 363 MB, free: 8.402 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.992e-05/0.1237, allocations: 20.69 kB / 363 MB, free: 8.383 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.343e-05/0.1238, allocations: 16.38 kB / 363.1 MB, free: 8.367 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003723/0.1242, allocations: 218.7 kB / 363.3 MB, free: 8.141 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.723e-05/0.1242, allocations: 7.906 kB / 363.3 MB, free: 8.133 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.518e-05/0.1242, allocations: 11.94 kB / 363.3 MB, free: 8.121 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.158e-05/0.1243, allocations: 4 kB / 363.3 MB, free: 8.117 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004294/0.1247, allocations: 159 kB / 363.5 MB, free: 7.965 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001528/0.1262, allocations: 0.774 MB / 364.2 MB, free: 7.121 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004/0.1267, allocations: 146.7 kB / 364.4 MB, free: 6.969 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001427/0.1268, allocations: 76.81 kB / 364.4 MB, free: 6.891 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.997e-05/0.1268, allocations: 0 / 364.4 MB, free: 6.891 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.281e-05/0.1269, allocations: 34.56 kB / 364.5 MB, free: 6.848 MB / 302.1 MB Notification: Performance of pre-optimization done (n=19): time 1.313e-06/0.1269, allocations: 4 kB / 364.5 MB, free: 6.844 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.002002/0.1289, allocations: 0.9866 MB / 365.5 MB, free: 5.75 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.559e-05/0.1289, allocations: 55.41 kB / 365.5 MB, free: 5.684 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000284/0.1292, allocations: 218.7 kB / 365.7 MB, free: 5.461 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.711e-05/0.1293, allocations: 33.7 kB / 365.8 MB, free: 5.422 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.905e-05/0.1294, allocations: 136.2 kB / 365.9 MB, free: 5.285 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.121e-05/0.1294, allocations: 74.98 kB / 366 MB, free: 5.211 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.113e-05/0.1295, allocations: 57.61 kB / 366 MB, free: 5.148 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.00012/0.1297, allocations: 334.8 kB / 366.4 MB, free: 4.812 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001602/0.1298, allocations: 71.91 kB / 366.4 MB, free: 4.742 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000219/0.1301, allocations: 107.4 kB / 366.5 MB, free: 4.625 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002906/0.1304, allocations: 169 kB / 366.7 MB, free: 4.449 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.1304, allocations: 0 / 366.7 MB, free: 4.449 MB / 302.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.00053/0.1309, allocations: 262.1 kB / 367 MB, free: 4.184 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.609e-05/0.1309, allocations: 4 kB / 367 MB, free: 4.18 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.368e-06/0.131, allocations: 4 kB / 367 MB, free: 4.176 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002376/0.1312, allocations: 56.89 kB / 367 MB, free: 4.117 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000155/0.1314, allocations: 43.91 kB / 367.1 MB, free: 4.074 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00209/0.1335, allocations: 1.813 MB / 368.9 MB, free: 2.121 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002722/0.1337, allocations: 28.06 kB / 368.9 MB, free: 2.094 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.037e-05/0.1338, allocations: 8 kB / 368.9 MB, free: 2.086 MB / 302.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.000146/0.1339, allocations: 149.7 kB / 369.1 MB, free: 1.93 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.31e-05/0.134, allocations: 23.66 kB / 369.1 MB, free: 1.906 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.388e-05/0.1341, allocations: 25.86 kB / 369.1 MB, free: 1.887 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.21e-06/0.1341, allocations: 4 kB / 369.1 MB, free: 1.883 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.725e-06/0.1341, allocations: 3.938 kB / 369.1 MB, free: 1.879 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.968e-06/0.1341, allocations: 3.938 kB / 369.1 MB, free: 1.875 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001001/0.1351, allocations: 0.614 MB / 369.7 MB, free: 1.195 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.815e-06/0.1351, allocations: 0 / 369.7 MB, free: 1.195 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001762/0.1353, allocations: 31.97 kB / 369.8 MB, free: 1.164 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001588/0.1355, allocations: 56.89 kB / 369.8 MB, free: 1.105 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.131e-05/0.1355, allocations: 11.94 kB / 369.8 MB, free: 1.094 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1768/0.3123, allocations: 1.648 MB / 371.5 MB, free: 18.8 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.135e-06/0.3124, allocations: 0.7812 kB / 371.5 MB, free: 18.8 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007754/0.3132, allocations: 424.9 kB / 371.9 MB, free: 18.65 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.155e-05/0.3133, allocations: 114.4 kB / 372 MB, free: 18.56 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.628e-05/0.3133, allocations: 5.875 kB / 372 MB, free: 18.56 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002038/0.3135, allocations: 24.2 kB / 372 MB, free: 18.56 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002262/0.3138, allocations: 63.45 kB / 372.1 MB, free: 18.56 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.438e-05/0.3138, allocations: 10.2 kB / 372.1 MB, free: 18.56 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001634/0.314, allocations: 160 kB / 372.3 MB, free: 18.48 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.314, allocations: 0 / 372.3 MB, free: 18.48 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004605/0.3144, allocations: 66.56 kB / 372.3 MB, free: 18.48 MB / 302.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.001637/0.3161, allocations: 1.215 MB / 373.5 MB, free: 17.75 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006955/0.3168, allocations: 322.8 kB / 373.9 MB, free: 17.64 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.3168, allocations: 0 / 373.9 MB, free: 17.64 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003031/0.3171, allocations: 231.7 kB / 374.1 MB, free: 17.53 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004353/0.3176, allocations: 47.14 kB / 374.1 MB, free: 17.53 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0037/0.3213, allocations: 2.66 MB / 376.8 MB, free: 15.87 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002304/0.3215, allocations: 0.75 MB / 377.5 MB, free: 15.17 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001121/0.3216, allocations: 32.28 kB / 377.6 MB, free: 15.16 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001021/0.3217, allocations: 66.59 kB / 377.6 MB, free: 15.11 MB / 302.1 MB Notification: Performance of SimCode: time 6.21e-07/0.3217, allocations: 1.375 kB / 377.6 MB, free: 15.11 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04246/0.3642, allocations: 6.343 MB / 384 MB, free: 14.07 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.7/12.07, allocations: 5.375 kB / 384 MB, free: 14.07 MB / 302.1 MB (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) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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) Reference file matches