Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Oscillator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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.Translational.Examples.Oscillator,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Oscillator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Oscillator,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Oscillator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008929/0.0008929, allocations: 91.8 kB / 16.65 MB, free: 6.59 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009461/0.0009462, allocations: 182.3 kB / 17.56 MB, free: 6.203 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.306/1.306, allocations: 223.3 MB / 241.6 MB, free: 116 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002798/0.00028, allocations: 4 kB / 301.5 MB, free: 6.023 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08861/0.08892, allocations: 50.41 MB / 351.9 MB, free: 3.602 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Oscillator): time 0.002332/0.09129, allocations: 2.105 MB / 354 MB, free: 1.48 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009563/0.09227, allocations: 0.5649 MB / 354.6 MB, free: 0.9102 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001677/0.09246, allocations: 7.938 kB / 354.6 MB, free: 0.9023 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001609/0.09266, allocations: 27.77 kB / 354.6 MB, free: 0.875 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001846/0.09286, allocations: 55.53 kB / 354.7 MB, free: 0.8203 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002182/0.09309, allocations: 47.95 kB / 354.7 MB, free: 0.7734 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000287/0.09338, allocations: 254.8 kB / 355 MB, free: 0.5234 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001759/0.09357, allocations: 77.91 kB / 355.1 MB, free: 452 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001641/0.09374, allocations: 83.7 kB / 355.2 MB, free: 368 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000151/0.0939, allocations: 103.4 kB / 355.3 MB, free: 264 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.958e-05/0.09394, allocations: 8 kB / 355.3 MB, free: 256 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.092e-05/0.09398, allocations: 12 kB / 355.3 MB, free: 244 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.812e-05/0.09402, allocations: 39.84 kB / 355.3 MB, free: 204 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001055/0.09413, allocations: 133.1 kB / 355.4 MB, free: 64 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002223/0.09436, allocations: 227.3 kB / 355.7 MB, free: 15.84 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.09437, allocations: 3.938 kB / 355.7 MB, free: 15.84 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.09438, allocations: 0 / 355.7 MB, free: 15.84 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.233e-06/0.09439, allocations: 4 kB / 355.7 MB, free: 15.83 MB / 302.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.0006321/0.09503, allocations: 495.2 kB / 356.2 MB, free: 15.3 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.82e-05/0.09507, allocations: 8.031 kB / 356.2 MB, free: 15.29 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.037e-05/0.09514, allocations: 58.73 kB / 356.2 MB, free: 15.23 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.897e-05/0.0952, allocations: 24.66 kB / 356.2 MB, free: 15.2 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002228/0.09542, allocations: 237.5 kB / 356.5 MB, free: 14.93 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.457e-05/0.09545, allocations: 16.81 kB / 356.5 MB, free: 14.91 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.025e-05/0.09549, allocations: 24.28 kB / 356.5 MB, free: 14.89 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003916/0.09589, allocations: 221.1 kB / 356.7 MB, free: 14.66 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.613e-05/0.09591, allocations: 7.984 kB / 356.7 MB, free: 14.66 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.856e-05/0.09594, allocations: 8 kB / 356.7 MB, free: 14.65 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.623e-06/0.09595, allocations: 4 kB / 356.8 MB, free: 14.64 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003106/0.09627, allocations: 155.8 kB / 356.9 MB, free: 14.49 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00106/0.09733, allocations: 0.8027 MB / 357.7 MB, free: 13.62 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003687/0.09772, allocations: 197 kB / 357.9 MB, free: 13.41 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002201/0.09795, allocations: 117.8 kB / 358 MB, free: 13.29 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.09e-05/0.09798, allocations: 4.172 kB / 358 MB, free: 13.29 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.336e-05/0.09801, allocations: 42.5 kB / 358.1 MB, free: 13.24 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 1.422e-06/0.09801, allocations: 0 / 358.1 MB, free: 13.24 MB / 302.1 MB Notification: Performance of matching and sorting (n=26): time 0.001449/0.09947, allocations: 0.8704 MB / 358.9 MB, free: 12.28 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.394e-05/0.09952, allocations: 81.11 kB / 359 MB, free: 12.18 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001425/0.09968, allocations: 182.2 kB / 359.2 MB, free: 11.99 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.794e-05/0.0997, allocations: 29.64 kB / 359.2 MB, free: 11.96 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.587e-05/0.09978, allocations: 148.3 kB / 359.4 MB, free: 11.81 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.306e-05/0.09985, allocations: 94.64 kB / 359.5 MB, free: 11.71 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.738e-05/0.09989, allocations: 29.7 kB / 359.5 MB, free: 11.68 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.213e-05/0.09999, allocations: 334.8 kB / 359.8 MB, free: 11.34 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001431/0.1001, allocations: 63.97 kB / 359.9 MB, free: 11.28 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001551/0.1003, allocations: 116.1 kB / 360 MB, free: 11.15 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003162/0.1006, allocations: 203.2 kB / 360.2 MB, free: 10.94 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.1006, allocations: 3.938 kB / 360.2 MB, free: 10.94 MB / 302.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004046/0.1011, allocations: 253.2 kB / 360.4 MB, free: 10.68 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.527e-05/0.1011, allocations: 6.344 kB / 360.4 MB, free: 10.68 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.254e-06/0.1011, allocations: 7.938 kB / 360.4 MB, free: 10.67 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.12e-05/0.1011, allocations: 0 / 360.4 MB, free: 10.67 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002326/0.1013, allocations: 71.98 kB / 360.5 MB, free: 10.6 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.328e-06/0.1014, allocations: 3.984 kB / 360.5 MB, free: 10.6 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001077/0.1015, allocations: 15.94 kB / 360.5 MB, free: 10.58 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.751e-05/0.1015, allocations: 12 kB / 360.6 MB, free: 10.57 MB / 302.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 0.0001046/0.1016, allocations: 138.2 kB / 360.7 MB, free: 10.43 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.571e-05/0.1017, allocations: 19.81 kB / 360.7 MB, free: 10.41 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.016e-05/0.1017, allocations: 29.86 kB / 360.7 MB, free: 10.38 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.458e-06/0.1017, allocations: 4 kB / 360.7 MB, free: 10.38 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.1018, allocations: 4 kB / 360.7 MB, free: 10.37 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.978e-06/0.1018, allocations: 0 / 360.7 MB, free: 10.37 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007419/0.1025, allocations: 0.5942 MB / 361.3 MB, free: 9.711 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.1025, allocations: 0 / 361.3 MB, free: 9.711 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002469/0.1028, allocations: 59.91 kB / 361.4 MB, free: 9.652 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.777e-06/0.1028, allocations: 4 kB / 361.4 MB, free: 9.648 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.649e-05/0.1028, allocations: 8 kB / 361.4 MB, free: 9.641 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.46e-06/0.1028, allocations: 7.922 kB / 361.4 MB, free: 9.633 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.1028, allocations: 4 kB / 361.4 MB, free: 9.629 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005839/0.1034, allocations: 0.4932 MB / 361.9 MB, free: 9.109 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.319e-05/0.1035, allocations: 92.92 kB / 362 MB, free: 9 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.93e-05/0.1035, allocations: 4 kB / 362 MB, free: 8.996 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001728/0.1037, allocations: 19.97 kB / 362 MB, free: 8.977 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.661e-05/0.1037, allocations: 11.98 kB / 362 MB, free: 8.965 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.297e-05/0.1038, allocations: 12 kB / 362 MB, free: 8.953 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.655e-05/0.1039, allocations: 132.3 kB / 362.2 MB, free: 8.824 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1039, allocations: 0 / 362.2 MB, free: 8.824 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003121/0.1042, allocations: 52 kB / 362.2 MB, free: 8.773 MB / 302.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.0008208/0.105, allocations: 1.046 MB / 363.3 MB, free: 7.688 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003478/0.1054, allocations: 190.8 kB / 363.5 MB, free: 7.504 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.1054, allocations: 0 / 363.5 MB, free: 7.504 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001627/0.1055, allocations: 95.89 kB / 363.6 MB, free: 7.41 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004636/0.106, allocations: 47.61 kB / 363.6 MB, free: 7.367 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002935/0.109, allocations: 2.833 MB / 366.4 MB, free: 4.41 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002621/0.1092, allocations: 0.748 MB / 367.2 MB, free: 3.633 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.895e-05/0.1093, allocations: 17.95 kB / 367.2 MB, free: 3.617 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000102/0.1094, allocations: 67.41 kB / 367.3 MB, free: 3.551 MB / 302.1 MB Notification: Performance of SimCode: time 3e-07/0.1094, allocations: 0 / 367.3 MB, free: 3.551 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4781/0.5875, allocations: 3.97 MB / 371.2 MB, free: 23.95 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001799/0.5878, allocations: 209.2 kB / 371.4 MB, free: 23.7 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.992/2.58, allocations: 0 / 371.4 MB, free: 23.7 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Oscillator.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Oscillator.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Oscillator.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Oscillator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Oscillator_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Oscillator_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Oscillator.fmu > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Oscillator.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Oscillator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/Oscillator/Oscillator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Oscillator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches