Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Oscillator.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.005664/0.005664, allocations: 114.2 kB / 21.97 MB, free: 5.227 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.001633/0.001633, allocations: 212.6 kB / 25.28 MB, free: 3.242 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.31/1.31, allocations: 207.6 MB / 236 MB, free: 9.992 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.Translational.Examples.Oscillator,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_Oscillator",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Oscillator,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_Oscillator",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.001685/0.001685, allocations: 55.92 kB / 348 MB, free: 10.04 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2355/0.2372, allocations: 49.16 MB / 397.1 MB, free: 8.953 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Oscillator): time 0.00356/0.2407, allocations: 2.419 MB / 399.5 MB, free: 7.301 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001145/0.2419, allocations: 0.636 MB / 400.2 MB, free: 6.84 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001397/0.242, allocations: 7.75 kB / 400.2 MB, free: 6.836 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001393/0.2422, allocations: 32.8 kB / 400.2 MB, free: 6.816 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000126/0.2423, allocations: 71.83 kB / 400.3 MB, free: 6.762 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000213/0.2425, allocations: 63.47 kB / 400.4 MB, free: 6.727 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002515/0.2428, allocations: 252.3 kB / 400.6 MB, free: 6.602 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001603/0.2429, allocations: 79.16 kB / 400.7 MB, free: 6.559 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001302/0.243, allocations: 103.4 kB / 400.8 MB, free: 6.512 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001521/0.2432, allocations: 115.6 kB / 400.9 MB, free: 6.449 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.604e-05/0.2432, allocations: 20.16 kB / 400.9 MB, free: 6.449 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.593e-05/0.2433, allocations: 20.44 kB / 400.9 MB, free: 6.449 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.953e-05/0.2433, allocations: 43.95 kB / 401 MB, free: 6.422 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001001/0.2434, allocations: 116.3 kB / 401.1 MB, free: 6.352 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003231/0.2437, allocations: 252.8 kB / 401.3 MB, free: 6.254 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.2437, allocations: 0 / 401.3 MB, free: 6.254 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.374e-06/0.2437, allocations: 1.5 kB / 401.3 MB, free: 6.254 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.307e-05/0.2438, allocations: 0 / 401.3 MB, free: 6.254 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0006772/0.2444, allocations: 462.3 kB / 401.8 MB, free: 5.883 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.106e-05/0.2445, allocations: 13.48 kB / 401.8 MB, free: 5.879 MB / 318.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.767e-05/0.2445, allocations: 5.547 kB / 401.8 MB, free: 5.879 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.254e-05/0.2445, allocations: 58.33 kB / 401.9 MB, free: 5.824 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.175e-05/0.2446, allocations: 30.19 kB / 401.9 MB, free: 5.809 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002845/0.2449, allocations: 174.6 kB / 402.1 MB, free: 5.645 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.743e-05/0.2449, allocations: 16.75 kB / 402.1 MB, free: 5.637 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.041e-05/0.2449, allocations: 22.03 kB / 402.1 MB, free: 5.629 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003567/0.2453, allocations: 216.9 kB / 402.3 MB, free: 5.516 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.617e-05/0.2453, allocations: 5.172 kB / 402.3 MB, free: 5.512 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.961e-05/0.2453, allocations: 9.125 kB / 402.3 MB, free: 5.504 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.428e-06/0.2453, allocations: 5.875 kB / 402.3 MB, free: 5.504 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002967/0.2456, allocations: 146.6 kB / 402.5 MB, free: 5.461 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009323/0.2466, allocations: 0.7464 MB / 403.2 MB, free: 4.898 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003657/0.2469, allocations: 197.3 kB / 403.4 MB, free: 4.789 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002063/0.2471, allocations: 93.78 kB / 403.5 MB, free: 4.75 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.293e-05/0.2472, allocations: 6.469 kB / 403.5 MB, free: 4.746 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.41e-05/0.2472, allocations: 33.77 kB / 403.5 MB, free: 4.707 MB / 318.1 MB Notification: Performance of pre-optimization done (n=22): time 1.362e-06/0.2472, allocations: 4 kB / 403.6 MB, free: 4.703 MB / 318.1 MB Notification: Performance of matching and sorting (n=26): time 0.001309/0.2485, allocations: 0.7103 MB / 404.3 MB, free: 4.246 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.566e-05/0.2485, allocations: 80.11 kB / 404.3 MB, free: 4.152 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001228/0.2486, allocations: 187.5 kB / 404.5 MB, free: 4.02 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.491e-05/0.2486, allocations: 26.98 kB / 404.5 MB, free: 3.988 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.778e-05/0.2487, allocations: 144.7 kB / 404.7 MB, free: 3.859 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.59e-05/0.2488, allocations: 100.2 kB / 404.8 MB, free: 3.781 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.176e-05/0.2488, allocations: 44.89 kB / 404.8 MB, free: 3.75 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.893e-05/0.2489, allocations: 330.4 kB / 405.2 MB, free: 3.43 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001403/0.249, allocations: 63.41 kB / 405.2 MB, free: 3.41 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001475/0.2492, allocations: 109 kB / 405.3 MB, free: 3.344 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002875/0.2494, allocations: 189.2 kB / 405.5 MB, free: 3.234 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.2494, allocations: 5.094 kB / 405.5 MB, free: 3.23 MB / 318.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0003853/0.2498, allocations: 250.2 kB / 405.8 MB, free: 3.113 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.609e-05/0.2498, allocations: 9.562 kB / 405.8 MB, free: 3.109 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.783e-06/0.2498, allocations: 5.922 kB / 405.8 MB, free: 3.105 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.606e-05/0.2499, allocations: 3.219 kB / 405.8 MB, free: 3.105 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002415/0.2501, allocations: 58.83 kB / 405.8 MB, free: 3.102 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.815e-06/0.2501, allocations: 3.125 kB / 405.8 MB, free: 3.102 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001031/0.2502, allocations: 15 kB / 405.9 MB, free: 3.094 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.759e-05/0.2502, allocations: 15.81 kB / 405.9 MB, free: 3.086 MB / 318.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 (32): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.648e-05/0.2503, allocations: 141.3 kB / 406 MB, free: 2.949 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.721e-05/0.2504, allocations: 26.56 kB / 406 MB, free: 2.934 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.542e-05/0.2504, allocations: 27.11 kB / 406.1 MB, free: 2.91 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.576e-06/0.2504, allocations: 3.281 kB / 406.1 MB, free: 2.91 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.583e-06/0.2504, allocations: 1.25 kB / 406.1 MB, free: 2.91 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.232e-06/0.2505, allocations: 1.406 kB / 406.1 MB, free: 2.91 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006548/0.2511, allocations: 0.5589 MB / 406.6 MB, free: 2.496 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.825e-06/0.2511, allocations: 1.25 kB / 406.6 MB, free: 2.496 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002449/0.2514, allocations: 59.47 kB / 406.7 MB, free: 2.488 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.246e-06/0.2514, allocations: 2.281 kB / 406.7 MB, free: 2.488 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.597e-05/0.2514, allocations: 12.19 kB / 406.7 MB, free: 2.48 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.556e-06/0.2514, allocations: 10.38 kB / 406.7 MB, free: 2.473 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.2514, allocations: 6.125 kB / 406.7 MB, free: 2.469 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005028/0.2519, allocations: 495.2 kB / 407.2 MB, free: 2.133 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.749e-05/0.2519, allocations: 15.34 kB / 407.2 MB, free: 2.125 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.944e-05/0.2519, allocations: 7.547 kB / 407.2 MB, free: 2.121 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001588/0.2521, allocations: 15.5 kB / 407.2 MB, free: 2.113 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.512e-05/0.2522, allocations: 23.48 kB / 407.3 MB, free: 2.105 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.362e-05/0.2522, allocations: 10.02 kB / 407.3 MB, free: 2.102 MB / 318.1 MB Notification: Performance of sorting global known variables: time 7.317e-05/0.2522, allocations: 131.4 kB / 407.4 MB, free: 2.012 MB / 318.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2522, allocations: 0 / 407.4 MB, free: 2.012 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003242/0.2526, allocations: 50.75 kB / 407.4 MB, free: 2.004 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (damper1.s_rel,damper1.v_rel,mass1.s,mass1.v) * 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 (26): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006741/0.2532, allocations: 1.031 MB / 408.5 MB, free: 1.125 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003451/0.2536, allocations: 171.4 kB / 408.6 MB, free: 1.074 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.2536, allocations: 1.938 kB / 408.6 MB, free: 1.074 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001575/0.2537, allocations: 91.5 kB / 408.7 MB, free: 1.047 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004481/0.2542, allocations: 36.7 kB / 408.8 MB, free: 1.031 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002811/0.257, allocations: 2.654 MB / 411.4 MB, free: 15.04 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003995/0.2574, allocations: 0.7498 MB / 412.2 MB, free: 14.34 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001034/0.2575, allocations: 25.77 kB / 412.2 MB, free: 14.33 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001195/0.2576, allocations: 71.78 kB / 412.3 MB, free: 14.28 MB / 334.1 MB Notification: Performance of SimCode: time 6.41e-07/0.2576, allocations: 0 / 412.3 MB, free: 14.28 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02676/0.2844, allocations: 4.708 MB / 417 MB, free: 12.28 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.62/10.9, allocations: 3.406 kB / 417 MB, free: 12.28 MB / 334.1 MB " [Timeout remaining time 649] (rm -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Oscillator.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Oscillator.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Oscillator.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Oscillator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Oscillator_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_Oscillator_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_Oscillator.fmu > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Oscillator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Oscillator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/Oscillator/Oscillator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Oscillator.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.108083416009322]