Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.First.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001303/0.001303, allocations: 123 kB / 17.79 MB, free: 5.246 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001388/0.001388, allocations: 207.2 kB / 20.75 MB, free: 2.297 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.457/1.457, allocations: 230.6 MB / 254.1 MB, free: 15.07 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.First,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_First",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.First,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_First",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001475/0.001475, allocations: 47.94 kB / 373 MB, free: 10.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1071/0.1086, allocations: 53.32 MB / 426.3 MB, free: 4.777 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.First): time 0.004043/0.1127, allocations: 2.385 MB / 428.7 MB, free: 2.379 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001293/0.1139, allocations: 0.6466 MB / 429.3 MB, free: 1.727 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001575/0.1141, allocations: 4 kB / 429.3 MB, free: 1.723 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001707/0.1143, allocations: 39.58 kB / 429.4 MB, free: 1.684 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000191/0.1145, allocations: 87.27 kB / 429.5 MB, free: 1.598 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002625/0.1147, allocations: 59.92 kB / 429.5 MB, free: 1.539 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003277/0.1151, allocations: 274.7 kB / 429.8 MB, free: 1.27 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001873/0.1152, allocations: 66.78 kB / 429.9 MB, free: 1.199 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002352/0.1155, allocations: 127.5 kB / 430 MB, free: 1.074 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001639/0.1156, allocations: 107.5 kB / 430.1 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.505e-05/0.1157, allocations: 27.98 kB / 430.1 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.829e-05/0.1157, allocations: 23.98 kB / 430.1 MB, free: 0.918 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.362e-05/0.1158, allocations: 55.78 kB / 430.2 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001185/0.1159, allocations: 119.4 kB / 430.3 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003621/0.1163, allocations: 278.8 kB / 430.6 MB, free: 484 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.1163, allocations: 0 / 430.6 MB, free: 484 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.1163, allocations: 0 / 430.6 MB, free: 484 kB / 350.1 MB Notification: Performance of Transformations before backend: time 6.623e-06/0.1163, allocations: 0 / 430.6 MB, free: 484 kB / 350.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.2012/0.3175, allocations: 0.5228 MB / 431.1 MB, free: 11.18 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.966e-05/0.3175, allocations: 9.188 kB / 431.1 MB, free: 11.18 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.631e-05/0.3176, allocations: 59.44 kB / 431.2 MB, free: 11.14 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002044/0.3178, allocations: 40.75 kB / 431.2 MB, free: 11.13 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003585/0.3182, allocations: 242.2 kB / 431.4 MB, free: 10.92 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.503e-05/0.3182, allocations: 15.84 kB / 431.5 MB, free: 10.92 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.051e-05/0.3182, allocations: 27.47 kB / 431.5 MB, free: 10.92 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003977/0.3186, allocations: 191.9 kB / 431.7 MB, free: 10.88 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.11e-05/0.3187, allocations: 9.844 kB / 431.7 MB, free: 10.88 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.152e-05/0.3187, allocations: 9.031 kB / 431.7 MB, free: 10.88 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.768e-06/0.3187, allocations: 5.5 kB / 431.7 MB, free: 10.88 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002921/0.319, allocations: 140.8 kB / 431.8 MB, free: 10.88 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008988/0.3199, allocations: 0.6285 MB / 432.5 MB, free: 10.58 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002932/0.3202, allocations: 171.7 kB / 432.6 MB, free: 10.55 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001548/0.3203, allocations: 86.59 kB / 432.7 MB, free: 10.55 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.721e-05/0.3204, allocations: 3.969 kB / 432.7 MB, free: 10.55 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.086e-05/0.3204, allocations: 37.16 kB / 432.8 MB, free: 10.51 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.623e-06/0.3204, allocations: 0 / 432.8 MB, free: 10.51 MB / 350.1 MB Notification: Performance of matching and sorting (n=32): time 0.001863/0.3222, allocations: 1.077 MB / 433.8 MB, free: 9.996 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.894e-05/0.3223, allocations: 57.72 kB / 433.9 MB, free: 9.934 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001683/0.3224, allocations: 187.7 kB / 434.1 MB, free: 9.828 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.595e-05/0.3225, allocations: 34.33 kB / 434.1 MB, free: 9.797 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.848e-05/0.3225, allocations: 147.6 kB / 434.3 MB, free: 9.691 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.564e-05/0.3226, allocations: 114.1 kB / 434.4 MB, free: 9.617 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.796e-05/0.3227, allocations: 52 kB / 434.4 MB, free: 9.602 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.826e-05/0.3227, allocations: 332.3 kB / 434.7 MB, free: 9.289 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001452/0.3229, allocations: 69.72 kB / 434.8 MB, free: 9.289 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001762/0.3231, allocations: 106.3 kB / 434.9 MB, free: 9.242 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000298/0.3234, allocations: 193.5 kB / 435.1 MB, free: 9.145 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.3234, allocations: 1.031 kB / 435.1 MB, free: 9.145 MB / 350.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0004868/0.3238, allocations: 295.9 kB / 435.4 MB, free: 9.016 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.852e-05/0.3239, allocations: 5.938 kB / 435.4 MB, free: 9.016 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.771e-06/0.3239, allocations: 0 / 435.4 MB, free: 9.016 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000198/0.3241, allocations: 41.69 kB / 435.4 MB, free: 9 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000256/0.3243, allocations: 57.06 kB / 435.5 MB, free: 9 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001215/0.3255, allocations: 1.738 MB / 437.2 MB, free: 7.344 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001443/0.3257, allocations: 12.59 kB / 437.2 MB, free: 7.336 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.742e-05/0.3257, allocations: 11.69 kB / 437.3 MB, free: 7.332 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.0001158/0.3258, allocations: 144.3 kB / 437.4 MB, free: 7.199 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.812e-05/0.3259, allocations: 25.39 kB / 437.4 MB, free: 7.184 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.461e-05/0.3259, allocations: 30.94 kB / 437.4 MB, free: 7.16 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.937e-06/0.3259, allocations: 3.531 kB / 437.5 MB, free: 7.16 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.984e-06/0.3259, allocations: 4.453 kB / 437.5 MB, free: 7.16 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.3259, allocations: 2.156 kB / 437.5 MB, free: 7.16 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009854/0.3269, allocations: 0.7758 MB / 438.2 MB, free: 6.633 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.777e-06/0.3269, allocations: 2.281 kB / 438.2 MB, free: 6.633 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002688/0.3272, allocations: 61.86 kB / 438.3 MB, free: 6.629 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001238/0.3273, allocations: 39.31 kB / 438.3 MB, free: 6.613 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.828e-05/0.3273, allocations: 7.766 kB / 438.3 MB, free: 6.609 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008703/0.3282, allocations: 1.489 MB / 439.8 MB, free: 5.145 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.277e-06/0.3282, allocations: 1.875 kB / 439.8 MB, free: 5.145 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006356/0.3288, allocations: 480.9 kB / 440.3 MB, free: 4.852 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.267e-05/0.3289, allocations: 101.1 kB / 440.4 MB, free: 4.742 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.876e-05/0.3289, allocations: 7.766 kB / 440.4 MB, free: 4.738 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001379/0.3291, allocations: 11.77 kB / 440.4 MB, free: 4.734 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.233e-05/0.3291, allocations: 18.81 kB / 440.4 MB, free: 4.734 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.583e-05/0.3292, allocations: 11.66 kB / 440.5 MB, free: 4.73 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001089/0.3293, allocations: 146.3 kB / 440.6 MB, free: 4.629 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3293, allocations: 0 / 440.6 MB, free: 4.629 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004027/0.3297, allocations: 64.69 kB / 440.7 MB, free: 4.621 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.0008072/0.3305, allocations: 1.02 MB / 441.7 MB, free: 3.789 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005982/0.3311, allocations: 331.8 kB / 442 MB, free: 3.602 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.3311, allocations: 0 / 442 MB, free: 3.602 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003108/0.3314, allocations: 236.5 kB / 442.2 MB, free: 3.449 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004334/0.3318, allocations: 47.91 kB / 442.3 MB, free: 3.43 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003184/0.335, allocations: 2.758 MB / 445 MB, free: 1.492 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002534/0.3353, allocations: 0.7599 MB / 445.8 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001222/0.3354, allocations: 22.62 kB / 445.8 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001186/0.3355, allocations: 76.62 kB / 445.9 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of SimCode: time 6.91e-07/0.3355, allocations: 0 / 445.9 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04055/0.376, allocations: 5.328 MB / 451.2 MB, free: 24 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.07/10.44, allocations: 10.8 kB / 451.2 MB, free: 16 kB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.First.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.First.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.First.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.First.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.First_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_First.fmu > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.First.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.First_res.csv","/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_4.1.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: 12.957592493999982]