Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001493/0.001493, allocations: 101 kB / 21.95 MB, free: 5.215 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.001575/0.001575, allocations: 209.6 kB / 25.25 MB, free: 3.133 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.297/1.297, allocations: 207.7 MB / 236.1 MB, free: 9.785 MB / 190.1 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Mechanics_Rotational_Examples_First",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.First,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_First",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001605/0.001605, allocations: 51.92 kB / 348 MB, free: 9.895 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2143/0.2159, allocations: 49.17 MB / 397.1 MB, free: 8.871 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.First): time 0.002798/0.2187, allocations: 2.228 MB / 399.4 MB, free: 7.395 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007522/0.2195, allocations: 0.595 MB / 400 MB, free: 6.977 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001088/0.2196, allocations: 12.03 kB / 400 MB, free: 6.969 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001225/0.2197, allocations: 35.19 kB / 400 MB, free: 6.945 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001339/0.2198, allocations: 80.98 kB / 400.1 MB, free: 6.887 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001667/0.22, allocations: 51.52 kB / 400.1 MB, free: 6.859 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002421/0.2203, allocations: 278.9 kB / 400.4 MB, free: 6.715 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001578/0.2204, allocations: 78.55 kB / 400.5 MB, free: 6.672 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001324/0.2205, allocations: 105.9 kB / 400.6 MB, free: 6.625 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001367/0.2207, allocations: 114.2 kB / 400.7 MB, free: 6.566 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.689e-05/0.2207, allocations: 21.5 kB / 400.7 MB, free: 6.566 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.004e-05/0.2208, allocations: 19.84 kB / 400.7 MB, free: 6.566 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.82e-05/0.2208, allocations: 58.39 kB / 400.8 MB, free: 6.523 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.522e-05/0.2209, allocations: 96.89 kB / 400.9 MB, free: 6.477 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002673/0.2211, allocations: 271.8 kB / 401.1 MB, free: 6.367 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.2211, allocations: 3.938 kB / 401.2 MB, free: 6.363 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.2211, allocations: 0 / 401.2 MB, free: 6.363 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.982e-06/0.2212, allocations: 1.406 kB / 401.2 MB, free: 6.363 MB / 318.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.0005487/0.2217, allocations: 463.7 kB / 401.6 MB, free: 5.988 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.347e-05/0.2217, allocations: 13.89 kB / 401.6 MB, free: 5.984 MB / 318.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.857e-05/0.2218, allocations: 10.03 kB / 401.6 MB, free: 5.98 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.788e-05/0.2218, allocations: 54.91 kB / 401.7 MB, free: 5.93 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.322e-05/0.2218, allocations: 29.94 kB / 401.7 MB, free: 5.914 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002118/0.222, allocations: 180.7 kB / 401.9 MB, free: 5.75 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.579e-05/0.2221, allocations: 13.41 kB / 401.9 MB, free: 5.746 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.724e-05/0.2221, allocations: 26.27 kB / 401.9 MB, free: 5.734 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00034/0.2224, allocations: 200.9 kB / 402.1 MB, free: 5.633 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.595e-05/0.2225, allocations: 9.672 kB / 402.1 MB, free: 5.625 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.866e-05/0.2225, allocations: 9.438 kB / 402.1 MB, free: 5.617 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.083e-06/0.2225, allocations: 5.859 kB / 402.1 MB, free: 5.617 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002562/0.2227, allocations: 137.6 kB / 402.3 MB, free: 5.578 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007446/0.2235, allocations: 0.5447 MB / 402.8 MB, free: 5.188 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002606/0.2237, allocations: 165.4 kB / 403 MB, free: 5.113 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001428/0.2239, allocations: 97.73 kB / 403.1 MB, free: 5.07 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.606e-05/0.2239, allocations: 2.875 kB / 403.1 MB, free: 5.07 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.354e-05/0.2239, allocations: 36.09 kB / 403.1 MB, free: 5.027 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.293e-06/0.2239, allocations: 1.469 kB / 403.1 MB, free: 5.027 MB / 318.1 MB Notification: Performance of matching and sorting (n=32): time 0.00157/0.2255, allocations: 0.9218 MB / 404 MB, free: 4.477 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.018e-05/0.2255, allocations: 55.53 kB / 404.1 MB, free: 4.414 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001247/0.2256, allocations: 182.9 kB / 404.3 MB, free: 4.289 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.453e-05/0.2256, allocations: 30.83 kB / 404.3 MB, free: 4.254 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.729e-05/0.2257, allocations: 141.1 kB / 404.4 MB, free: 4.125 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.071e-05/0.2257, allocations: 117 kB / 404.6 MB, free: 4.031 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.54e-05/0.2258, allocations: 54.17 kB / 404.6 MB, free: 3.996 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.48e-05/0.2259, allocations: 334.6 kB / 404.9 MB, free: 3.676 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000125/0.226, allocations: 68.47 kB / 405 MB, free: 3.652 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001388/0.2261, allocations: 107.4 kB / 405.1 MB, free: 3.598 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002767/0.2264, allocations: 194.7 kB / 405.3 MB, free: 3.496 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.744e-06/0.2264, allocations: 0.8125 kB / 405.3 MB, free: 3.496 MB / 318.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0004263/0.2268, allocations: 293.4 kB / 405.6 MB, free: 3.355 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.4e-05/0.2268, allocations: 6.328 kB / 405.6 MB, free: 3.355 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.079e-06/0.2268, allocations: 1.125 kB / 405.6 MB, free: 3.355 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001565/0.227, allocations: 49.64 kB / 405.6 MB, free: 3.332 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002318/0.2272, allocations: 61.09 kB / 405.7 MB, free: 3.324 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009882/0.2282, allocations: 1.633 MB / 407.3 MB, free: 1.793 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001133/0.2283, allocations: 14.42 kB / 407.4 MB, free: 1.785 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.631e-05/0.2284, allocations: 13.84 kB / 407.4 MB, free: 1.777 MB / 318.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 9.558e-05/0.2284, allocations: 145.7 kB / 407.5 MB, free: 1.637 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.329e-05/0.2285, allocations: 22.48 kB / 407.5 MB, free: 1.625 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.821e-05/0.2285, allocations: 29.05 kB / 407.6 MB, free: 1.602 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-06/0.2285, allocations: 3.625 kB / 407.6 MB, free: 1.602 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.933e-06/0.2285, allocations: 2.25 kB / 407.6 MB, free: 1.602 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.2286, allocations: 0.9844 kB / 407.6 MB, free: 1.602 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008399/0.2294, allocations: 0.7242 MB / 408.3 MB, free: 1.09 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.2294, allocations: 1.375 kB / 408.3 MB, free: 1.09 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002373/0.2296, allocations: 56.09 kB / 408.3 MB, free: 1.086 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001026/0.2297, allocations: 37.25 kB / 408.4 MB, free: 1.07 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.654e-05/0.2298, allocations: 7.266 kB / 408.4 MB, free: 1.066 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008536/0.2306, allocations: 1.378 MB / 409.8 MB, free: 15.73 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.2306, allocations: 6.047 kB / 409.8 MB, free: 15.72 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006669/0.2313, allocations: 495.5 kB / 410.3 MB, free: 15.42 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.501e-05/0.2313, allocations: 23.48 kB / 410.3 MB, free: 15.4 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.027e-05/0.2313, allocations: 7.594 kB / 410.3 MB, free: 15.4 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001334/0.2315, allocations: 8.516 kB / 410.3 MB, free: 15.39 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.878e-05/0.2315, allocations: 23.77 kB / 410.3 MB, free: 15.39 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.349e-05/0.2315, allocations: 7.453 kB / 410.3 MB, free: 15.39 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000104/0.2316, allocations: 132.1 kB / 410.5 MB, free: 15.3 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2316, allocations: 4 kB / 410.5 MB, free: 15.3 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003503/0.232, allocations: 68.72 kB / 410.5 MB, free: 15.29 MB / 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.000985/0.233, allocations: 1.006 MB / 411.5 MB, free: 14.46 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005712/0.2336, allocations: 327.9 kB / 411.9 MB, free: 14.28 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.2336, allocations: 5.344 kB / 411.9 MB, free: 14.28 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003501/0.2339, allocations: 244.1 kB / 412.1 MB, free: 14.12 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004284/0.2343, allocations: 47.09 kB / 412.1 MB, free: 14.09 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003692/0.238, allocations: 2.748 MB / 414.9 MB, free: 12.13 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001729/0.2382, allocations: 151.9 kB / 415 MB, free: 12.05 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.744e-05/0.2383, allocations: 20.72 kB / 415.1 MB, free: 12.05 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001216/0.2384, allocations: 80.83 kB / 415.1 MB, free: 11.99 MB / 334.1 MB Notification: Performance of SimCode: time 2.81e-07/0.2384, allocations: 0 / 415.1 MB, free: 11.99 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0316/0.27, allocations: 5.672 MB / 420.8 MB, free: 9.332 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.19/11.46, allocations: 11.69 kB / 420.8 MB, free: 9.324 MB / 334.1 MB " [Timeout remaining time 648] (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_First_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_First.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/First/First.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.737259227083996]