Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.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.OneWayClutch,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_OneWayClutch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.OneWayClutch,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_OneWayClutch",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001436/0.001436, 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.001681/0.001681, 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.45/1.45, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001386/0.001386, allocations: 64.17 kB / 307.1 MB, free: 0.543 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1127/0.1141, allocations: 50.53 MB / 357.6 MB, free: 14.01 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.004419/0.1186, allocations: 2.267 MB / 359.8 MB, free: 11.73 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001701/0.1203, allocations: 0.8762 MB / 360.7 MB, free: 10.84 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002043/0.1205, allocations: 8 kB / 360.7 MB, free: 10.84 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000357/0.1209, allocations: 51.56 kB / 360.8 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003957/0.1213, allocations: 103.2 kB / 360.9 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003392/0.1217, allocations: 87.81 kB / 361 MB, free: 10.6 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004131/0.1221, allocations: 295.4 kB / 361.3 MB, free: 10.31 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001968/0.1223, allocations: 56.36 kB / 361.3 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003567/0.1227, allocations: 135.5 kB / 361.4 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002552/0.1229, allocations: 131.5 kB / 361.6 MB, free: 9.988 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.95e-05/0.123, allocations: 20 kB / 361.6 MB, free: 9.969 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002138/0.1232, allocations: 87.91 kB / 361.7 MB, free: 9.883 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.967e-05/0.1233, allocations: 51.83 kB / 361.7 MB, free: 9.832 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001975/0.1235, allocations: 119.4 kB / 361.8 MB, free: 9.715 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004452/0.124, allocations: 307.3 kB / 362.1 MB, free: 9.414 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.58e-06/0.124, allocations: 0 / 362.1 MB, free: 9.414 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.124, allocations: 4 kB / 362.1 MB, free: 9.41 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.172e-05/0.124, allocations: 0 / 362.1 MB, free: 9.41 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: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.001177/0.1252, allocations: 0.5899 MB / 362.7 MB, free: 8.766 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.122e-05/0.1253, allocations: 12.03 kB / 362.8 MB, free: 8.754 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001108/0.1254, allocations: 50.72 kB / 362.8 MB, free: 8.695 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000197/0.1256, allocations: 32.66 kB / 362.8 MB, free: 8.664 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003344/0.1259, allocations: 261.5 kB / 363.1 MB, free: 8.367 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.468e-05/0.126, allocations: 12.38 kB / 363.1 MB, free: 8.355 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.616e-05/0.126, allocations: 20.38 kB / 363.1 MB, free: 8.336 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004969/0.1265, allocations: 223.3 kB / 363.3 MB, free: 8.105 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.568e-05/0.1266, allocations: 0 / 363.3 MB, free: 8.105 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.399e-05/0.1266, allocations: 11.98 kB / 363.3 MB, free: 8.094 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.886e-06/0.1266, allocations: 8 kB / 363.4 MB, free: 8.086 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004941/0.1271, allocations: 183.6 kB / 363.5 MB, free: 7.906 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001134/0.1282, allocations: 0.6487 MB / 364.2 MB, free: 7.203 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006386/0.1289, allocations: 214.3 kB / 364.4 MB, free: 6.984 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000249/0.1292, allocations: 96.81 kB / 364.5 MB, free: 6.887 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.844e-05/0.1292, allocations: 0 / 364.5 MB, free: 6.887 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005276/0.1298, allocations: 176.2 kB / 364.7 MB, free: 6.703 MB / 302.1 MB Notification: Performance of pre-optimization done (n=25): time 1.703e-06/0.1298, allocations: 0 / 364.7 MB, free: 6.703 MB / 302.1 MB Notification: Performance of matching and sorting (n=27): time 0.00281/0.1326, allocations: 1.166 MB / 365.8 MB, free: 5.43 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.303e-05/0.1327, allocations: 59.41 kB / 365.9 MB, free: 5.359 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000228/0.1329, allocations: 198.6 kB / 366.1 MB, free: 5.152 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.063e-05/0.133, allocations: 33.7 kB / 366.1 MB, free: 5.113 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.186e-05/0.1331, allocations: 128.4 kB / 366.2 MB, free: 4.984 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.275e-05/0.1332, allocations: 94.73 kB / 366.3 MB, free: 4.891 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001578/0.1333, allocations: 61.59 kB / 366.4 MB, free: 4.824 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001348/0.1335, allocations: 338.7 kB / 366.7 MB, free: 4.484 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000284/0.1338, allocations: 103.9 kB / 366.8 MB, free: 4.383 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002867/0.134, allocations: 133.2 kB / 367 MB, free: 4.242 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005373/0.1346, allocations: 242.1 kB / 367.2 MB, free: 3.988 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.1346, allocations: 0 / 367.2 MB, free: 3.988 MB / 302.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0008512/0.1355, allocations: 369.7 kB / 367.5 MB, free: 3.613 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.863e-05/0.1355, allocations: 40.66 kB / 367.6 MB, free: 3.57 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.135e-06/0.1355, allocations: 4.062 kB / 367.6 MB, free: 3.566 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002336/0.1358, allocations: 60.77 kB / 367.7 MB, free: 3.504 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002142/0.136, allocations: 51.91 kB / 367.7 MB, free: 3.453 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002158/0.1382, allocations: 1.81 MB / 369.5 MB, free: 1.5 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002983/0.1385, allocations: 28.03 kB / 369.5 MB, free: 1.473 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.184e-05/0.1385, allocations: 16 kB / 369.6 MB, free: 1.457 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: 11 (signalEngagement.count,$PRE.signalEngagement.count,signalEngagement.T_start,$PRE.signalEngagement.T_start,oneWayClutch.free,oneWayClutch.stuck,$PRE.oneWayClutch.stuck,oneWayClutch.locked,oneWayClutch.startForward,$PRE.oneWayClutch.startForward,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 1 * 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.0001753/0.1387, allocations: 149.6 kB / 369.7 MB, free: 1.301 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.786e-05/0.1388, allocations: 23.72 kB / 369.7 MB, free: 1.277 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.695e-05/0.1388, allocations: 30.62 kB / 369.8 MB, free: 1.246 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.369e-06/0.1388, allocations: 4 kB / 369.8 MB, free: 1.242 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.999e-06/0.1388, allocations: 3.938 kB / 369.8 MB, free: 1.238 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.693e-06/0.1389, allocations: 3.984 kB / 369.8 MB, free: 1.234 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001179/0.14, allocations: 0.6825 MB / 370.4 MB, free: 0.4922 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.058e-06/0.1401, allocations: 4 kB / 370.5 MB, free: 500 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002248/0.1403, allocations: 47.91 kB / 370.5 MB, free: 452 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001834/0.1405, allocations: 48.83 kB / 370.5 MB, free: 400 kB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.183e-05/0.1405, allocations: 4 kB / 370.6 MB, free: 396 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2097/0.3502, allocations: 1.642 MB / 372.2 MB, free: 18.88 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.3502, allocations: 1.156 kB / 372.2 MB, free: 18.88 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001136/0.3514, allocations: 0.5017 MB / 372.7 MB, free: 18.75 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001746/0.3516, allocations: 117.3 kB / 372.8 MB, free: 18.65 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.687e-05/0.3516, allocations: 10.31 kB / 372.8 MB, free: 18.65 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002627/0.3519, allocations: 33.22 kB / 372.9 MB, free: 18.65 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001866/0.3521, allocations: 73.25 kB / 372.9 MB, free: 18.65 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.609e-05/0.3521, allocations: 11.22 kB / 372.9 MB, free: 18.65 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000145/0.3523, allocations: 146 kB / 373.1 MB, free: 18.58 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3523, allocations: 0 / 373.1 MB, free: 18.58 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005121/0.3528, allocations: 74.94 kB / 373.2 MB, free: 18.58 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (inertiaOut.phi,inertiaOut.w,oneWayClutch.phi_rel,oneWayClutch.w_rel) * Number of discrete variables: 7 ($whenCondition1,oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck,oneWayClutch.free,signalEngagement.T_start,signalEngagement.count) * Number of discrete states: 3 (signalEngagement.count,oneWayClutch.stuck,oneWayClutch.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.002073/0.3549, allocations: 1.319 MB / 374.5 MB, free: 17.86 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000957/0.3559, allocations: 453 kB / 374.9 MB, free: 17.69 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.3559, allocations: 0 / 374.9 MB, free: 17.69 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004243/0.3563, allocations: 265.7 kB / 375.2 MB, free: 17.57 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004954/0.3568, allocations: 53.36 kB / 375.2 MB, free: 17.57 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004094/0.3609, allocations: 2.808 MB / 378 MB, free: 15.72 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000243/0.3612, allocations: 0.7483 MB / 378.8 MB, free: 15.02 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001342/0.3613, allocations: 36.38 kB / 378.8 MB, free: 15.01 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001146/0.3614, allocations: 68.48 kB / 378.9 MB, free: 14.96 MB / 302.1 MB Notification: Performance of SimCode: time 6.91e-07/0.3614, allocations: 0 / 378.9 MB, free: 14.96 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03288/0.3943, allocations: 6.965 MB / 385.8 MB, free: 13.45 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.72/12.12, allocations: 11.45 kB / 385.9 MB, free: 13.45 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch_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_OneWayClutch.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/OneWayClutch/OneWayClutch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches