Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.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.00127/0.00127, 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.001402/0.001402, allocations: 215.1 kB / 23.75 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.381/1.381, allocations: 230.5 MB / 257.4 MB, free: 8.004 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.First,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_First",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.First,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_First",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00192/0.00192, allocations: 59.89 kB / 377.8 MB, free: 3.012 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2302/0.2321, allocations: 53.41 MB / 431.2 MB, free: 6.688 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.First): time 0.004148/0.2363, allocations: 2.384 MB / 433.6 MB, free: 4.297 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001395/0.2377, allocations: 0.6622 MB / 434.2 MB, free: 3.629 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002083/0.2379, allocations: 7.938 kB / 434.2 MB, free: 3.621 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001861/0.238, allocations: 35.59 kB / 434.3 MB, free: 3.586 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002154/0.2383, allocations: 83.27 kB / 434.3 MB, free: 3.504 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002846/0.2385, allocations: 63.86 kB / 434.4 MB, free: 3.441 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000372/0.2389, allocations: 286.6 kB / 434.7 MB, free: 3.16 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001914/0.2391, allocations: 71.23 kB / 434.8 MB, free: 3.086 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002348/0.2393, allocations: 115.6 kB / 434.9 MB, free: 2.973 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002092/0.2396, allocations: 119.4 kB / 435 MB, free: 2.855 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.664e-05/0.2396, allocations: 20 kB / 435 MB, free: 2.836 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.466e-05/0.2397, allocations: 28 kB / 435 MB, free: 2.809 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.674e-05/0.2397, allocations: 47.84 kB / 435.1 MB, free: 2.762 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000134/0.2398, allocations: 119.4 kB / 435.2 MB, free: 2.645 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003702/0.2402, allocations: 275.2 kB / 435.5 MB, free: 2.383 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.2402, allocations: 4 kB / 435.5 MB, free: 2.379 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.2402, allocations: 4 kB / 435.5 MB, free: 2.375 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.697e-05/0.2402, allocations: 0 / 435.5 MB, free: 2.375 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: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.0008157/0.2411, allocations: 461.5 kB / 435.9 MB, free: 1.895 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.309e-05/0.2411, allocations: 12.03 kB / 435.9 MB, free: 1.883 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.323e-05/0.2412, allocations: 54.73 kB / 436 MB, free: 1.82 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001676/0.2413, allocations: 36.73 kB / 436 MB, free: 1.785 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003754/0.2417, allocations: 186.9 kB / 436.2 MB, free: 1.574 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.266e-05/0.2417, allocations: 16.81 kB / 436.2 MB, free: 1.559 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.238e-05/0.2418, allocations: 28.33 kB / 436.3 MB, free: 1.531 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00037/0.2422, allocations: 203.3 kB / 436.5 MB, free: 1.328 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.599e-05/0.2422, allocations: 0 / 436.5 MB, free: 1.328 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.269e-05/0.2422, allocations: 12 kB / 436.5 MB, free: 1.316 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.056e-05/0.2422, allocations: 4 kB / 436.5 MB, free: 1.312 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003009/0.2425, allocations: 137.7 kB / 436.6 MB, free: 1.176 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001007/0.2435, allocations: 0.5988 MB / 437.2 MB, free: 0.5352 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003184/0.2438, allocations: 172.9 kB / 437.4 MB, free: 372 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001666/0.244, allocations: 88.81 kB / 437.5 MB, free: 280 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.496e-05/0.244, allocations: 8 kB / 437.5 MB, free: 272 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.002e-05/0.244, allocations: 30.56 kB / 437.5 MB, free: 232 kB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.563e-06/0.2441, allocations: 0 / 437.5 MB, free: 232 kB / 334.1 MB Notification: Performance of matching and sorting (n=32): time 0.001942/0.246, allocations: 0.9189 MB / 438.4 MB, free: 15.25 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.442e-05/0.246, allocations: 63.33 kB / 438.5 MB, free: 15.18 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001973/0.2462, allocations: 179.2 kB / 438.6 MB, free: 14.99 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.443e-05/0.2463, allocations: 33.7 kB / 438.7 MB, free: 14.95 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.847e-05/0.2464, allocations: 140.8 kB / 438.8 MB, free: 14.81 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001006/0.2465, allocations: 119 kB / 438.9 MB, free: 14.7 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.879e-05/0.2466, allocations: 53.7 kB / 439 MB, free: 14.64 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001603/0.2467, allocations: 338.8 kB / 439.3 MB, free: 14.3 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001592/0.2469, allocations: 67.97 kB / 439.4 MB, free: 14.23 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001779/0.2471, allocations: 111.2 kB / 439.5 MB, free: 14.11 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003357/0.2474, allocations: 196.7 kB / 439.7 MB, free: 13.91 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.092e-06/0.2474, allocations: 0 / 439.7 MB, free: 13.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0005131/0.2479, allocations: 291.2 kB / 440 MB, free: 13.62 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.787e-05/0.2479, allocations: 11.98 kB / 440 MB, free: 13.61 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.88e-06/0.2479, allocations: 0 / 440 MB, free: 13.61 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000183/0.2481, allocations: 40.84 kB / 440 MB, free: 13.57 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002424/0.2484, allocations: 59.91 kB / 440.1 MB, free: 13.51 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001597/0.2499, allocations: 1.637 MB / 441.7 MB, free: 11.76 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001402/0.2501, allocations: 12.02 kB / 441.7 MB, free: 11.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.033e-05/0.2501, allocations: 8.188 kB / 441.7 MB, free: 11.74 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (32): * Single equations (assignments): 31 * 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,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000153/0.2503, allocations: 145.3 kB / 441.9 MB, free: 11.59 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.893e-05/0.2503, allocations: 23.8 kB / 441.9 MB, free: 11.57 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.339e-05/0.2504, allocations: 30.64 kB / 441.9 MB, free: 11.54 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.77e-06/0.2504, allocations: 16 kB / 441.9 MB, free: 11.52 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.63e-06/0.2504, allocations: 0 / 441.9 MB, free: 11.52 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-06/0.2504, allocations: 0 / 441.9 MB, free: 11.52 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001181/0.2516, allocations: 0.7578 MB / 442.7 MB, free: 10.7 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.345e-06/0.2516, allocations: 4.094 kB / 442.7 MB, free: 10.69 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002619/0.2518, allocations: 55.91 kB / 442.8 MB, free: 10.64 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001167/0.252, allocations: 36.84 kB / 442.8 MB, free: 10.6 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.731e-05/0.252, allocations: 4 kB / 442.8 MB, free: 10.59 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001249/0.2532, allocations: 1.389 MB / 444.2 MB, free: 9.086 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.2532, allocations: 0 / 444.2 MB, free: 9.086 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007159/0.2539, allocations: 490.9 kB / 444.7 MB, free: 8.578 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.84e-05/0.254, allocations: 15.86 kB / 444.7 MB, free: 8.562 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.122e-05/0.254, allocations: 12 kB / 444.7 MB, free: 8.551 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001416/0.2541, allocations: 12.03 kB / 444.7 MB, free: 8.539 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.295e-05/0.2542, allocations: 19.97 kB / 444.7 MB, free: 8.52 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.856e-05/0.2542, allocations: 15.98 kB / 444.7 MB, free: 8.504 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001216/0.2543, allocations: 132.4 kB / 444.9 MB, free: 8.375 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2543, allocations: 0 / 444.9 MB, free: 8.375 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003625/0.2547, allocations: 68 kB / 444.9 MB, free: 8.309 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (29): * 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: 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.001019/0.2557, allocations: 1.013 MB / 446 MB, free: 7.258 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006207/0.2563, allocations: 338.6 kB / 446.3 MB, free: 6.914 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.2563, allocations: 0 / 446.3 MB, free: 6.914 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003553/0.2567, allocations: 234.4 kB / 446.5 MB, free: 6.672 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004151/0.2571, allocations: 51.41 kB / 446.6 MB, free: 6.625 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003662/0.2608, allocations: 2.76 MB / 449.3 MB, free: 3.754 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003956/0.2612, allocations: 0.7525 MB / 450.1 MB, free: 2.973 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.125e-05/0.2613, allocations: 34.27 kB / 450.1 MB, free: 2.941 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001155/0.2614, allocations: 75.41 kB / 450.2 MB, free: 2.867 MB / 350.1 MB Notification: Performance of SimCode: time 5.31e-07/0.2614, allocations: 3.938 kB / 450.2 MB, free: 2.863 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03552/0.2969, allocations: 5.549 MB / 455.7 MB, free: 13.43 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.22/11.52, allocations: 8.062 kB / 455.7 MB, free: 13.42 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Rotational_Examples_First_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Rotational_Examples_First.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/First/First.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.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.771777736954391]