Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded.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.001499/0.001499, allocations: 105.1 kB / 21.22 MB, free: 0.6289 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.001689/0.001689, allocations: 213.5 kB / 24.52 MB, free: 3.91 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.386/1.386, allocations: 230.5 MB / 258.2 MB, free: 7.809 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.FirstGrounded,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_FirstGrounded",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.FirstGrounded,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_FirstGrounded",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001805/0.001805, allocations: 55.91 kB / 378.5 MB, free: 2.945 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2252/0.227, allocations: 53.43 MB / 431.9 MB, free: 6.477 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.FirstGrounded): time 0.003689/0.2307, allocations: 2.239 MB / 434.2 MB, free: 4.234 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001219/0.232, allocations: 0.6193 MB / 434.8 MB, free: 3.609 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001682/0.2321, allocations: 7.938 kB / 434.8 MB, free: 3.602 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000163/0.2323, allocations: 35.66 kB / 434.8 MB, free: 3.566 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001884/0.2325, allocations: 75.33 kB / 434.9 MB, free: 3.492 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002587/0.2327, allocations: 59.88 kB / 434.9 MB, free: 3.434 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003275/0.2331, allocations: 262.8 kB / 435.2 MB, free: 3.176 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001681/0.2332, allocations: 64.52 kB / 435.3 MB, free: 3.109 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002328/0.2335, allocations: 119.6 kB / 435.4 MB, free: 2.992 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000164/0.2336, allocations: 103.5 kB / 435.5 MB, free: 2.891 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.908e-05/0.2337, allocations: 23.98 kB / 435.5 MB, free: 2.867 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.886e-05/0.2337, allocations: 24 kB / 435.5 MB, free: 2.844 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.538e-05/0.2338, allocations: 47.78 kB / 435.6 MB, free: 2.797 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000102/0.2339, allocations: 95.53 kB / 435.7 MB, free: 2.703 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003305/0.2342, allocations: 259.8 kB / 435.9 MB, free: 2.457 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.2342, allocations: 0 / 435.9 MB, free: 2.457 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.2342, allocations: 4 kB / 435.9 MB, free: 2.453 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.415e-06/0.2342, allocations: 0 / 435.9 MB, free: 2.453 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0006908/0.2349, allocations: 449.5 kB / 436.4 MB, free: 1.984 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.75e-05/0.2349, allocations: 12.03 kB / 436.4 MB, free: 1.973 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.526e-05/0.235, allocations: 8.562 kB / 436.4 MB, free: 1.965 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.344e-05/0.235, allocations: 54.73 kB / 436.4 MB, free: 1.902 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001602/0.2352, allocations: 36.78 kB / 436.5 MB, free: 1.867 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003165/0.2355, allocations: 186.8 kB / 436.7 MB, free: 1.656 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.787e-05/0.2355, allocations: 12.81 kB / 436.7 MB, free: 1.645 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.8e-05/0.2356, allocations: 24.36 kB / 436.7 MB, free: 1.621 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003816/0.2359, allocations: 209.8 kB / 436.9 MB, free: 1.406 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.017e-05/0.236, allocations: 7.938 kB / 436.9 MB, free: 1.398 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.196e-05/0.236, allocations: 12 kB / 436.9 MB, free: 1.387 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.051e-05/0.236, allocations: 7.938 kB / 436.9 MB, free: 1.379 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000277/0.2363, allocations: 129.7 kB / 437.1 MB, free: 1.25 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009975/0.2373, allocations: 0.6267 MB / 437.7 MB, free: 0.5781 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002623/0.2375, allocations: 138.5 kB / 437.8 MB, free: 444 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001285/0.2377, allocations: 64.83 kB / 437.9 MB, free: 376 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.16e-05/0.2377, allocations: 4 kB / 437.9 MB, free: 372 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.723e-05/0.2377, allocations: 34.56 kB / 437.9 MB, free: 328 kB / 334.1 MB Notification: Performance of pre-optimization done (n=20): time 1.303e-06/0.2377, allocations: 0 / 437.9 MB, free: 328 kB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.001523/0.2392, allocations: 0.7531 MB / 438.7 MB, free: 15.52 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.781e-05/0.2393, allocations: 51.41 kB / 438.7 MB, free: 15.46 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001752/0.2394, allocations: 180.6 kB / 438.9 MB, free: 15.27 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.15e-05/0.2395, allocations: 29.7 kB / 438.9 MB, free: 15.23 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001015/0.2396, allocations: 148.4 kB / 439.1 MB, free: 15.08 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.163e-05/0.2396, allocations: 91.22 kB / 439.2 MB, free: 14.99 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.605e-05/0.2397, allocations: 45.7 kB / 439.2 MB, free: 14.94 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001341/0.2398, allocations: 334.8 kB / 439.5 MB, free: 14.61 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001286/0.24, allocations: 63.91 kB / 439.6 MB, free: 14.54 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001523/0.2401, allocations: 96.25 kB / 439.7 MB, free: 14.43 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002795/0.2404, allocations: 168.8 kB / 439.9 MB, free: 14.25 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.322e-06/0.2404, allocations: 0 / 439.9 MB, free: 14.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004485/0.2409, allocations: 254.1 kB / 440.1 MB, free: 14 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.574e-05/0.2409, allocations: 4 kB / 440.1 MB, free: 13.99 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.632e-06/0.2409, allocations: 7.938 kB / 440.1 MB, free: 13.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001557/0.241, allocations: 32.83 kB / 440.1 MB, free: 13.95 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000204/0.2412, allocations: 51.92 kB / 440.2 MB, free: 13.9 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001259/0.2425, allocations: 1.374 MB / 441.6 MB, free: 12.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001181/0.2426, allocations: 12.02 kB / 441.6 MB, free: 12.39 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.943e-05/0.2426, allocations: 11.98 kB / 441.6 MB, free: 12.38 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 27 * 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): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001257/0.2428, allocations: 137.8 kB / 441.7 MB, free: 12.24 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.35e-05/0.2428, allocations: 19.86 kB / 441.7 MB, free: 12.22 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.632e-05/0.2429, allocations: 29.89 kB / 441.8 MB, free: 12.18 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.873e-06/0.2429, allocations: 0 / 441.8 MB, free: 12.18 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.357e-06/0.2429, allocations: 4 kB / 441.8 MB, free: 12.18 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.096e-06/0.2429, allocations: 4.062 kB / 441.8 MB, free: 12.18 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008942/0.2438, allocations: 0.5888 MB / 442.4 MB, free: 11.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.2438, allocations: 4 kB / 442.4 MB, free: 11.52 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002177/0.244, allocations: 47.91 kB / 442.4 MB, free: 11.47 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001187/0.2441, allocations: 36.83 kB / 442.5 MB, free: 11.43 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.571e-05/0.2441, allocations: 4 kB / 442.5 MB, free: 11.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00116/0.2453, allocations: 1.373 MB / 443.8 MB, free: 9.941 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.517e-06/0.2453, allocations: 3.984 kB / 443.8 MB, free: 9.938 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005909/0.2459, allocations: 398.1 kB / 444.2 MB, free: 9.523 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.56e-05/0.2459, allocations: 31.83 kB / 444.3 MB, free: 9.492 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.647e-05/0.2459, allocations: 4 kB / 444.3 MB, free: 9.488 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001229/0.2461, allocations: 8.062 kB / 444.3 MB, free: 9.48 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.462e-05/0.2461, allocations: 23.91 kB / 444.3 MB, free: 9.457 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.17e-05/0.2461, allocations: 4 kB / 444.3 MB, free: 9.453 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001136/0.2462, allocations: 132.1 kB / 444.4 MB, free: 9.324 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2462, allocations: 0 / 444.4 MB, free: 9.324 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003147/0.2466, allocations: 60 kB / 444.5 MB, free: 9.266 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (inertia3.phi,inertia3.w,damper.phi_rel,damper.w_rel) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 20 * 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): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0009167/0.2475, allocations: 0.9416 MB / 445.4 MB, free: 8.289 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005369/0.248, allocations: 274.5 kB / 445.7 MB, free: 8.008 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.248, allocations: 4 kB / 445.7 MB, free: 8.004 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003204/0.2483, allocations: 206.6 kB / 445.9 MB, free: 7.789 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004035/0.2487, allocations: 40.62 kB / 445.9 MB, free: 7.75 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003241/0.252, allocations: 2.554 MB / 448.5 MB, free: 5.078 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001299/0.2521, allocations: 142.5 kB / 448.6 MB, free: 4.918 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.591e-05/0.2522, allocations: 13.95 kB / 448.6 MB, free: 4.902 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001015/0.2523, allocations: 71.34 kB / 448.7 MB, free: 4.832 MB / 350.1 MB Notification: Performance of SimCode: time 3.31e-07/0.2523, allocations: 0 / 448.7 MB, free: 4.832 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03012/0.2824, allocations: 5.164 MB / 453.9 MB, free: 15.82 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.17/11.46, allocations: 8.062 kB / 453.9 MB, free: 15.82 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Rotational_Examples_FirstGrounded_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Rotational_Examples_FirstGrounded.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/FirstGrounded/FirstGrounded.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded.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: 13.810158798936754]