Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Blocks.Examples.Modulation.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.001258/0.001258, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.001526/0.001526, allocations: 203.5 kB / 23.73 MB, free: 4.379 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.403/1.403, allocations: 230.6 MB / 257.5 MB, free: 7.785 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.Blocks.Examples.Modulation,fileNamePrefix="Modelica_4_1_0_Modelica_Blocks_Examples_Modulation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Modulation,fileNamePrefix="Modelica_4_1_0_Modelica_Blocks_Examples_Modulation",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00153/0.00153, allocations: 47.92 kB / 377.7 MB, free: 2.973 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2864/0.2879, allocations: 53.37 MB / 431.1 MB, free: 6.637 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Modulation): time 0.003285/0.2912, allocations: 1.916 MB / 433 MB, free: 4.715 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001133/0.2923, allocations: 0.6077 MB / 433.6 MB, free: 4.102 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000112/0.2924, allocations: 11.88 kB / 433.6 MB, free: 4.09 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001591/0.2926, allocations: 35.59 kB / 433.6 MB, free: 4.055 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.643e-05/0.2927, allocations: 39.59 kB / 433.7 MB, free: 4.016 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000286/0.293, allocations: 79.84 kB / 433.8 MB, free: 3.938 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002639/0.2932, allocations: 211.1 kB / 434 MB, free: 3.73 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001556/0.2934, allocations: 52.36 kB / 434 MB, free: 3.68 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001729/0.2936, allocations: 83.7 kB / 434.1 MB, free: 3.598 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001255/0.2937, allocations: 87.48 kB / 434.2 MB, free: 3.512 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.748e-05/0.2937, allocations: 12 kB / 434.2 MB, free: 3.5 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.195e-05/0.2938, allocations: 16 kB / 434.2 MB, free: 3.484 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.241e-05/0.2938, allocations: 31.86 kB / 434.2 MB, free: 3.453 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001333/0.2939, allocations: 71.53 kB / 434.3 MB, free: 3.383 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002505/0.2942, allocations: 180.9 kB / 434.5 MB, free: 3.207 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.2942, allocations: 0 / 434.5 MB, free: 3.207 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.2942, allocations: 0 / 434.5 MB, free: 3.207 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.316e-06/0.2942, allocations: 4 kB / 434.5 MB, free: 3.203 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0007278/0.2949, allocations: 437.1 kB / 434.9 MB, free: 2.746 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.069e-05/0.295, allocations: 12.02 kB / 434.9 MB, free: 2.734 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.002e-05/0.295, allocations: 42.75 kB / 435 MB, free: 2.684 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002251/0.2953, allocations: 44.77 kB / 435 MB, free: 2.641 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003149/0.2956, allocations: 190 kB / 435.2 MB, free: 2.43 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.513e-05/0.2956, allocations: 8.375 kB / 435.2 MB, free: 2.422 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.39e-05/0.2956, allocations: 12.38 kB / 435.2 MB, free: 2.41 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003185/0.2959, allocations: 168.3 kB / 435.4 MB, free: 2.23 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.044e-05/0.2959, allocations: 0 / 435.4 MB, free: 2.23 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.551e-05/0.296, allocations: 7.938 kB / 435.4 MB, free: 2.223 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.923e-06/0.296, allocations: 4 kB / 435.4 MB, free: 2.219 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002157/0.2962, allocations: 91.88 kB / 435.5 MB, free: 2.129 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009087/0.2971, allocations: 0.5817 MB / 436.1 MB, free: 1.496 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002499/0.2973, allocations: 127.8 kB / 436.2 MB, free: 1.344 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001216/0.2975, allocations: 54.67 kB / 436.2 MB, free: 1.281 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.994e-05/0.2975, allocations: 0 / 436.2 MB, free: 1.281 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.047e-05/0.2975, allocations: 42.55 kB / 436.3 MB, free: 1.23 MB / 334.1 MB Notification: Performance of pre-optimization done (n=12): time 9.41e-07/0.2975, allocations: 0 / 436.3 MB, free: 1.23 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.0005055/0.298, allocations: 181.8 kB / 436.5 MB, free: 1.047 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.968e-05/0.2981, allocations: 110.9 kB / 436.6 MB, free: 0.9141 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002342/0.2983, allocations: 237.9 kB / 436.8 MB, free: 0.6758 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.95e-05/0.2983, allocations: 25.7 kB / 436.8 MB, free: 0.6445 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000102/0.2984, allocations: 140.1 kB / 437 MB, free: 0.5039 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.06e-05/0.2985, allocations: 47.53 kB / 437 MB, free: 468 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.805e-05/0.2986, allocations: 33.7 kB / 437 MB, free: 428 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001542/0.2987, allocations: 334.8 kB / 437.4 MB, free: 84 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001097/0.2988, allocations: 35.98 kB / 437.4 MB, free: 48 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001496/0.299, allocations: 94.89 kB / 437.5 MB, free: 15.93 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002619/0.2992, allocations: 150.7 kB / 437.7 MB, free: 15.76 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.38e-06/0.2992, allocations: 3.938 kB / 437.7 MB, free: 15.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0003422/0.2996, allocations: 185.4 kB / 437.8 MB, free: 15.57 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.538e-05/0.2996, allocations: 8 kB / 437.8 MB, free: 15.56 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.619e-06/0.2996, allocations: 0 / 437.8 MB, free: 15.56 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.426e-05/0.2996, allocations: 4 kB / 437.8 MB, free: 15.55 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001637/0.2998, allocations: 39.91 kB / 437.9 MB, free: 15.52 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.412e-06/0.2998, allocations: 0 / 437.9 MB, free: 15.52 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001059/0.2999, allocations: 19.89 kB / 437.9 MB, free: 15.5 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.63e-05/0.2999, allocations: 7.984 kB / 437.9 MB, free: 15.49 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (17): * Single equations (assignments): 17 * 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.0001169/0.3, allocations: 133.8 kB / 438 MB, free: 15.35 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.483e-05/0.3001, allocations: 23.86 kB / 438.1 MB, free: 15.32 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003795/0.3005, allocations: 182.9 kB / 438.2 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.523e-06/0.3005, allocations: 7.984 kB / 438.3 MB, free: 15.13 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.3005, allocations: 0 / 438.3 MB, free: 15.13 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.319e-06/0.3005, allocations: 0 / 438.3 MB, free: 15.13 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004314/0.3009, allocations: 228.5 kB / 438.5 MB, free: 14.87 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.3009, allocations: 0 / 438.5 MB, free: 14.87 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000191/0.3011, allocations: 35.97 kB / 438.5 MB, free: 14.83 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.024e-06/0.3011, allocations: 7.938 kB / 438.5 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.988e-05/0.3011, allocations: 8 kB / 438.5 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.542e-06/0.3011, allocations: 0 / 438.5 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.3011, allocations: 0 / 438.5 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005803/0.3017, allocations: 480.3 kB / 439 MB, free: 14.33 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.809e-05/0.3018, allocations: 23.84 kB / 439 MB, free: 14.31 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.22e-05/0.3018, allocations: 8.25 kB / 439 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001855/0.302, allocations: 8 kB / 439 MB, free: 14.29 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.933e-05/0.302, allocations: 23.84 kB / 439.1 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.086e-05/0.302, allocations: 8 kB / 439.1 MB, free: 14.26 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001549/0.3022, allocations: 173.2 kB / 439.2 MB, free: 14.09 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3022, allocations: 0 / 439.2 MB, free: 14.09 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000338/0.3025, allocations: 35.94 kB / 439.3 MB, free: 14.05 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 5 (sine.phi,sinAM.phi,cosAM.phi,sinFM.phi,cosFM.phi) * 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 (17): * Single equations (assignments): 17 * 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.0008443/0.3034, allocations: 1.004 MB / 440.3 MB, free: 13.02 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002889/0.3037, allocations: 112 kB / 440.4 MB, free: 12.91 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.794e-06/0.3037, allocations: 0 / 440.4 MB, free: 12.91 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001387/0.3038, allocations: 63.84 kB / 440.4 MB, free: 12.85 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003916/0.3042, allocations: 12.5 kB / 440.5 MB, free: 12.84 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003166/0.3074, allocations: 2.586 MB / 443 MB, free: 10.12 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001374/0.3075, allocations: 133.9 kB / 443.2 MB, free: 9.969 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.638e-05/0.3076, allocations: 25.41 kB / 443.2 MB, free: 9.945 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001201/0.3077, allocations: 75.39 kB / 443.3 MB, free: 9.871 MB / 350.1 MB Notification: Performance of SimCode: time 8.52e-07/0.3077, allocations: 3.938 kB / 443.3 MB, free: 9.867 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03485/0.3425, allocations: 4.279 MB / 447.6 MB, free: 5.719 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.71/11.05, allocations: 7.312 kB / 447.6 MB, free: 5.715 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.Modulation.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.Modulation.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.Modulation.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.Modulation.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Blocks.Examples.Modulation_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Blocks_Examples_Modulation_fmu --startTime=0 --stopTime=1 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Blocks_Examples_Modulation.fmu > Modelica_4.1.0_Modelica.Blocks.Examples.Modulation.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Blocks.Examples.Modulation_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/Modulation/Modulation.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Blocks.Examples.Modulation.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.546805919002509]