Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001636/0.001636, allocations: 109.5 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002097/0.002097, allocations: 181.8 kB / 23.72 MB, free: 4.699 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.348/1.348, allocations: 225.6 MB / 252.5 MB, free: 13.01 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.First,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_First",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.First,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_First",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001619/0.001619, allocations: 47.92 kB / 370.4 MB, free: 9.832 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2346/0.2362, allocations: 52.18 MB / 422.6 MB, free: 14.57 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.First): time 0.003597/0.2398, allocations: 2.387 MB / 425 MB, free: 12.17 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009729/0.2408, allocations: 0.5843 MB / 425.6 MB, free: 11.58 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001134/0.2409, allocations: 7.938 kB / 425.6 MB, free: 11.57 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001417/0.2411, allocations: 35.66 kB / 425.6 MB, free: 11.54 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001611/0.2412, allocations: 87.27 kB / 425.7 MB, free: 11.45 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002057/0.2414, allocations: 51.92 kB / 425.8 MB, free: 11.4 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003112/0.2417, allocations: 270.7 kB / 426 MB, free: 11.13 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00018/0.2419, allocations: 83.22 kB / 426.1 MB, free: 11.05 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001676/0.2421, allocations: 103.6 kB / 426.2 MB, free: 10.95 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001661/0.2422, allocations: 119.5 kB / 426.3 MB, free: 10.83 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.424e-05/0.2423, allocations: 20 kB / 426.4 MB, free: 10.81 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.852e-05/0.2423, allocations: 24 kB / 426.4 MB, free: 10.79 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.666e-05/0.2424, allocations: 51.78 kB / 426.4 MB, free: 10.73 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001202/0.2425, allocations: 119.4 kB / 426.5 MB, free: 10.62 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003212/0.2428, allocations: 267.2 kB / 426.8 MB, free: 10.36 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.517e-06/0.2428, allocations: 0 / 426.8 MB, free: 10.36 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.2428, allocations: 0 / 426.8 MB, free: 10.36 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.3e-06/0.2428, allocations: 3.938 kB / 426.8 MB, free: 10.36 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.0007177/0.2435, allocations: 465.5 kB / 427.3 MB, free: 9.875 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.555e-05/0.2436, allocations: 8.031 kB / 427.3 MB, free: 9.867 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.88e-05/0.2436, allocations: 58.73 kB / 427.3 MB, free: 9.801 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.895e-05/0.2437, allocations: 28.75 kB / 427.4 MB, free: 9.773 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003023/0.244, allocations: 182.8 kB / 427.5 MB, free: 9.566 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.918e-05/0.244, allocations: 16.81 kB / 427.5 MB, free: 9.551 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.463e-05/0.2441, allocations: 28.33 kB / 427.6 MB, free: 9.523 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003557/0.2444, allocations: 199.3 kB / 427.8 MB, free: 9.32 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.584e-05/0.2444, allocations: 4 kB / 427.8 MB, free: 9.316 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.959e-05/0.2445, allocations: 11.94 kB / 427.8 MB, free: 9.305 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.787e-06/0.2445, allocations: 8 kB / 427.8 MB, free: 9.297 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002729/0.2447, allocations: 137.7 kB / 427.9 MB, free: 9.16 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009344/0.2457, allocations: 0.5793 MB / 428.5 MB, free: 8.539 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003001/0.246, allocations: 177.8 kB / 428.7 MB, free: 8.359 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001607/0.2461, allocations: 88.83 kB / 428.8 MB, free: 8.27 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.984e-05/0.2461, allocations: 0 / 428.8 MB, free: 8.27 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.284e-05/0.2462, allocations: 42.55 kB / 428.8 MB, free: 8.219 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.012e-06/0.2462, allocations: 0 / 428.8 MB, free: 8.219 MB / 334.1 MB Notification: Performance of matching and sorting (n=32): time 0.001848/0.248, allocations: 0.9197 MB / 429.7 MB, free: 7.25 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.606e-05/0.2481, allocations: 59.34 kB / 429.8 MB, free: 7.18 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001899/0.2483, allocations: 184.1 kB / 430 MB, free: 6.988 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.494e-05/0.2483, allocations: 33.7 kB / 430 MB, free: 6.949 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.977e-05/0.2484, allocations: 140.8 kB / 430.1 MB, free: 6.809 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000106/0.2485, allocations: 123 kB / 430.3 MB, free: 6.688 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.708e-05/0.2486, allocations: 49.7 kB / 430.3 MB, free: 6.633 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002048/0.2488, allocations: 334.8 kB / 430.6 MB, free: 6.297 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001456/0.2489, allocations: 67.97 kB / 430.7 MB, free: 6.23 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001763/0.2491, allocations: 111.2 kB / 430.8 MB, free: 6.113 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003063/0.2494, allocations: 193.3 kB / 431 MB, free: 5.918 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.042e-06/0.2494, allocations: 0 / 431 MB, free: 5.918 MB / 334.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0005017/0.2499, allocations: 298.2 kB / 431.3 MB, free: 5.617 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.471e-05/0.2499, allocations: 8 kB / 431.3 MB, free: 5.609 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.029e-06/0.2499, allocations: 4.062 kB / 431.3 MB, free: 5.605 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001704/0.2501, allocations: 48.77 kB / 431.3 MB, free: 5.555 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002387/0.2503, allocations: 59.91 kB / 431.4 MB, free: 5.496 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001631/0.252, allocations: 1.638 MB / 433 MB, free: 3.75 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001149/0.2521, allocations: 8.031 kB / 433.1 MB, free: 3.742 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.678e-05/0.2521, allocations: 8 kB / 433.1 MB, free: 3.734 MB / 334.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.0001472/0.2522, allocations: 146.4 kB / 433.2 MB, free: 3.582 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.564e-05/0.2523, allocations: 23.8 kB / 433.2 MB, free: 3.559 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.318e-05/0.2524, allocations: 30.64 kB / 433.3 MB, free: 3.527 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.018e-06/0.2524, allocations: 4 kB / 433.3 MB, free: 3.523 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.2524, allocations: 0 / 433.3 MB, free: 3.523 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.719e-06/0.2524, allocations: 0 / 433.3 MB, free: 3.523 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001103/0.2535, allocations: 0.7494 MB / 434 MB, free: 2.703 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.726e-06/0.2535, allocations: 0 / 434 MB, free: 2.703 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002538/0.2537, allocations: 55.91 kB / 434.1 MB, free: 2.648 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000116/0.2538, allocations: 36.84 kB / 434.1 MB, free: 2.609 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.909e-05/0.2539, allocations: 7.984 kB / 434.1 MB, free: 2.602 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001205/0.2551, allocations: 1.389 MB / 435.5 MB, free: 1.094 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.2551, allocations: 3.938 kB / 435.5 MB, free: 1.09 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006728/0.2557, allocations: 482.7 kB / 436 MB, free: 0.5898 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.28e-05/0.2558, allocations: 23.92 kB / 436 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.751e-05/0.2558, allocations: 8 kB / 436 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000134/0.2559, allocations: 12.03 kB / 436 MB, free: 0.5469 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.497e-05/0.256, allocations: 27.95 kB / 436 MB, free: 0.5195 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.395e-05/0.256, allocations: 8 kB / 436 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001106/0.2561, allocations: 131.2 kB / 436.2 MB, free: 392 kB / 334.1 MB Notification: Performance of sort global known variables: time 6.1e-08/0.2561, allocations: 0 / 436.2 MB, free: 392 kB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003472/0.2565, allocations: 64 kB / 436.2 MB, free: 328 kB / 334.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.001029/0.2575, allocations: 1.027 MB / 437.3 MB, free: 15.25 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005775/0.2581, allocations: 327.5 kB / 437.6 MB, free: 14.92 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.2581, allocations: 0 / 437.6 MB, free: 14.92 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00034/0.2584, allocations: 230.5 kB / 437.8 MB, free: 14.68 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004257/0.2588, allocations: 50.98 kB / 437.9 MB, free: 14.64 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003611/0.2625, allocations: 2.765 MB / 440.6 MB, free: 11.76 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000445/0.2629, allocations: 0.7564 MB / 441.4 MB, free: 10.98 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.402e-05/0.263, allocations: 22.28 kB / 441.4 MB, free: 10.96 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001224/0.2631, allocations: 75.41 kB / 441.5 MB, free: 10.89 MB / 350.1 MB Notification: Performance of SimCode: time 3.1e-07/0.2631, allocations: 0 / 441.5 MB, free: 10.89 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03684/0.2999, allocations: 5.527 MB / 447 MB, free: 5.496 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.08/11.38, allocations: 0 / 447 MB, free: 5.496 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_First_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_First.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/First/First.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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.588008772116154]