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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001257/0.001257, allocations: 116.4 kB / 20.43 MB, free: 1.457 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.001543/0.001543, allocations: 214.9 kB / 23.74 MB, free: 4.672 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.38/1.38, allocations: 230.5 MB / 257.4 MB, free: 8.016 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.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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002006/0.002006, allocations: 67.89 kB / 377.8 MB, free: 3.012 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.262/0.264, allocations: 53.41 MB / 431.2 MB, free: 6.68 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.004156/0.2682, allocations: 2.298 MB / 433.5 MB, free: 4.371 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001685/0.2699, allocations: 0.8918 MB / 434.4 MB, free: 3.473 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001771/0.27, allocations: 3.938 kB / 434.4 MB, free: 3.469 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000276/0.2703, allocations: 47.64 kB / 434.4 MB, free: 3.422 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003925/0.2707, allocations: 111.3 kB / 434.5 MB, free: 3.312 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003002/0.271, allocations: 87.8 kB / 434.6 MB, free: 3.227 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004555/0.2715, allocations: 291.4 kB / 434.9 MB, free: 2.941 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001477/0.2716, allocations: 40.56 kB / 434.9 MB, free: 2.898 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003191/0.2719, allocations: 147.5 kB / 435.1 MB, free: 2.754 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002599/0.2722, allocations: 131.5 kB / 435.2 MB, free: 2.625 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.2e-05/0.2722, allocations: 20 kB / 435.2 MB, free: 2.605 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001868/0.2724, allocations: 75.98 kB / 435.3 MB, free: 2.531 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.849e-05/0.2725, allocations: 59.81 kB / 435.4 MB, free: 2.473 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001503/0.2727, allocations: 119.3 kB / 435.5 MB, free: 2.355 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005019/0.2732, allocations: 319.2 kB / 435.8 MB, free: 2.047 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.027e-06/0.2732, allocations: 0 / 435.8 MB, free: 2.047 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.113e-06/0.2732, allocations: 0 / 435.8 MB, free: 2.047 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.548e-06/0.2732, allocations: 0 / 435.8 MB, free: 2.047 MB / 334.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.001147/0.2743, allocations: 0.5181 MB / 436.3 MB, free: 1.492 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.385e-05/0.2744, allocations: 8.031 kB / 436.3 MB, free: 1.484 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.952e-05/0.2744, allocations: 54.73 kB / 436.4 MB, free: 1.422 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001855/0.2746, allocations: 40.73 kB / 436.4 MB, free: 1.383 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004162/0.275, allocations: 191.5 kB / 436.6 MB, free: 1.168 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.666e-05/0.2751, allocations: 16.38 kB / 436.6 MB, free: 1.152 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.599e-05/0.2751, allocations: 20.38 kB / 436.6 MB, free: 1.133 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005117/0.2756, allocations: 231.2 kB / 436.9 MB, free: 0.8945 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.896e-05/0.2757, allocations: 7.984 kB / 436.9 MB, free: 0.8867 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.308e-05/0.2757, allocations: 4 kB / 436.9 MB, free: 0.8828 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.955e-06/0.2757, allocations: 4 kB / 436.9 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005198/0.2762, allocations: 183.8 kB / 437 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001093/0.2773, allocations: 0.6244 MB / 437.7 MB, free: 28 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005976/0.2779, allocations: 205.4 kB / 437.9 MB, free: 15.82 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002371/0.2781, allocations: 96.75 kB / 438 MB, free: 15.72 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.362e-05/0.2782, allocations: 0 / 438 MB, free: 15.72 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004079/0.2786, allocations: 171.9 kB / 438.1 MB, free: 15.54 MB / 350.1 MB Notification: Performance of pre-optimization done (n=25): time 1.643e-06/0.2786, allocations: 0 / 438.1 MB, free: 15.54 MB / 350.1 MB Notification: Performance of matching and sorting (n=27): time 0.002434/0.281, allocations: 0.9301 MB / 439.1 MB, free: 14.56 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.527e-05/0.2811, allocations: 63.34 kB / 439.1 MB, free: 14.48 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002372/0.2813, allocations: 199.2 kB / 439.3 MB, free: 14.28 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.19e-05/0.2813, allocations: 33.7 kB / 439.4 MB, free: 14.24 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001058/0.2814, allocations: 136.5 kB / 439.5 MB, free: 14.1 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.43e-05/0.2815, allocations: 95.2 kB / 439.6 MB, free: 14.01 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001053/0.2816, allocations: 57.69 kB / 439.6 MB, free: 13.95 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001596/0.2818, allocations: 334.8 kB / 440 MB, free: 13.61 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002909/0.2821, allocations: 103.9 kB / 440.1 MB, free: 13.51 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002891/0.2824, allocations: 139.1 kB / 440.2 MB, free: 13.36 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000529/0.2829, allocations: 242 kB / 440.4 MB, free: 13.11 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.2829, allocations: 0 / 440.4 MB, free: 13.11 MB / 350.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0008349/0.2837, allocations: 377.7 kB / 440.8 MB, free: 12.72 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.263e-05/0.2838, allocations: 37.69 kB / 440.8 MB, free: 12.68 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.153e-06/0.2838, allocations: 0 / 440.8 MB, free: 12.68 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002216/0.284, allocations: 60.84 kB / 440.9 MB, free: 12.62 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002181/0.2842, allocations: 55.89 kB / 441 MB, free: 12.56 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002058/0.2863, allocations: 1.691 MB / 442.6 MB, free: 10.76 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002859/0.2866, allocations: 40 kB / 442.7 MB, free: 10.72 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.064e-05/0.2866, allocations: 12 kB / 442.7 MB, free: 10.71 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: 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.0001777/0.2868, allocations: 137.8 kB / 442.8 MB, free: 10.56 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.555e-05/0.2868, allocations: 23.86 kB / 442.9 MB, free: 10.54 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.503e-05/0.2869, allocations: 30.64 kB / 442.9 MB, free: 10.51 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.932e-06/0.2869, allocations: 4 kB / 442.9 MB, free: 10.5 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.2869, allocations: 7.875 kB / 442.9 MB, free: 10.5 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.994e-06/0.2869, allocations: 3.984 kB / 442.9 MB, free: 10.49 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001203/0.2881, allocations: 0.6509 MB / 443.6 MB, free: 9.789 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.511e-06/0.2881, allocations: 4.062 kB / 443.6 MB, free: 9.785 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002284/0.2884, allocations: 47.89 kB / 443.6 MB, free: 9.738 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001539/0.2885, allocations: 52.84 kB / 443.7 MB, free: 9.684 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.918e-05/0.2886, allocations: 11.98 kB / 443.7 MB, free: 9.672 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001714/0.2903, allocations: 1.542 MB / 445.2 MB, free: 8.012 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.2903, allocations: 0 / 445.2 MB, free: 8.012 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001097/0.2914, allocations: 0.5052 MB / 445.7 MB, free: 7.488 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001131/0.2915, allocations: 39.86 kB / 445.8 MB, free: 7.449 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.457e-05/0.2915, allocations: 8 kB / 445.8 MB, free: 7.441 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002466/0.2918, allocations: 31.91 kB / 445.8 MB, free: 7.41 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001696/0.2919, allocations: 71.86 kB / 445.9 MB, free: 7.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.551e-05/0.292, allocations: 15.92 kB / 445.9 MB, free: 7.324 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001639/0.2921, allocations: 156.9 kB / 446 MB, free: 7.172 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2921, allocations: 0 / 446 MB, free: 7.172 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004346/0.2926, allocations: 75.94 kB / 446.1 MB, free: 7.098 MB / 350.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.002657/0.2952, allocations: 1.305 MB / 447.4 MB, free: 5.891 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001041/0.2963, allocations: 430 kB / 447.8 MB, free: 5.445 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.2963, allocations: 3.938 kB / 447.8 MB, free: 5.441 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005297/0.2968, allocations: 258.5 kB / 448.1 MB, free: 5.176 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004666/0.2973, allocations: 60.02 kB / 448.1 MB, free: 5.117 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004871/0.3021, allocations: 2.821 MB / 451 MB, free: 2.188 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004703/0.3026, allocations: 0.7518 MB / 451.7 MB, free: 1.406 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001402/0.3027, allocations: 29.94 kB / 451.7 MB, free: 1.375 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001442/0.3029, allocations: 71.41 kB / 451.8 MB, free: 1.305 MB / 350.1 MB Notification: Performance of SimCode: time 1.403e-06/0.3029, allocations: 0 / 451.8 MB, free: 1.305 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04364/0.3465, allocations: 7.422 MB / 459.2 MB, free: 9.953 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.67/13.02, allocations: 0 / 459.2 MB, free: 9.953 MB / 366.1 MB " [Timeout remaining time 647] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Rotational_Examples_OneWayClutch_fmu --startTime=0 --stopTime=2 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Rotational_Examples_OneWayClutch.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.386220978107303]