Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CompareTransformers.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.00546/0.00546, allocations: 114 kB / 21.97 MB, free: 5.207 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.001578/0.001578, allocations: 206.5 kB / 25.27 MB, free: 3.215 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.352/1.352, allocations: 207.6 MB / 236 MB, free: 10 MB / 190.1 MB " [Timeout remaining time 178] 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.Electrical.Analog.Examples.CompareTransformers,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_CompareTransformers",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CompareTransformers,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_CompareTransformers",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.001734/0.001734, allocations: 47.94 kB / 348 MB, free: 10 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2644/0.2662, allocations: 49.16 MB / 397.2 MB, free: 8.965 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CompareTransformers): time 0.004601/0.2708, allocations: 4.057 MB / 401.2 MB, free: 6.094 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001617/0.2724, allocations: 0.9251 MB / 402.2 MB, free: 5.414 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002773/0.2727, allocations: 11.47 kB / 402.2 MB, free: 5.41 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002553/0.2729, allocations: 96.44 kB / 402.3 MB, free: 5.352 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003676/0.2733, allocations: 186.7 kB / 402.4 MB, free: 5.219 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003909/0.2737, allocations: 140.2 kB / 402.6 MB, free: 5.141 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006743/0.2743, allocations: 0.6797 MB / 403.3 MB, free: 4.793 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002714/0.2746, allocations: 148.5 kB / 403.4 MB, free: 4.707 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000311/0.2749, allocations: 266.6 kB / 403.7 MB, free: 4.582 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003329/0.2753, allocations: 290 kB / 403.9 MB, free: 4.434 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.651e-05/0.2753, allocations: 55.62 kB / 404 MB, free: 4.434 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.266e-05/0.2754, allocations: 55.94 kB / 404.1 MB, free: 4.434 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.391e-05/0.2755, allocations: 126.6 kB / 404.2 MB, free: 4.348 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002452/0.2758, allocations: 308 kB / 404.5 MB, free: 4.164 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005744/0.2763, allocations: 0.6457 MB / 405.1 MB, free: 3.902 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.2763, allocations: 0 / 405.1 MB, free: 3.902 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.2763, allocations: 4 kB / 405.1 MB, free: 3.898 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.193e-05/0.2764, allocations: 1.062 kB / 405.1 MB, free: 3.898 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: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.00127/0.2776, allocations: 0.798 MB / 405.9 MB, free: 3.352 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.287e-05/0.2777, allocations: 13.39 kB / 405.9 MB, free: 3.348 MB / 318.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 5.173e-05/0.2777, allocations: 18.33 kB / 406 MB, free: 3.344 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001244/0.2778, allocations: 120.7 kB / 406.1 MB, free: 3.254 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001106/0.278, allocations: 76.83 kB / 406.2 MB, free: 3.215 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004822/0.2784, allocations: 324.3 kB / 406.5 MB, free: 2.965 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.918e-05/0.2785, allocations: 40.78 kB / 406.5 MB, free: 2.949 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.516e-05/0.2785, allocations: 60.7 kB / 406.6 MB, free: 2.926 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000801/0.2793, allocations: 0.5141 MB / 407.1 MB, free: 2.691 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.881e-05/0.2794, allocations: 6.984 kB / 407.1 MB, free: 2.688 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.295e-05/0.2794, allocations: 20.81 kB / 407.1 MB, free: 2.672 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.464e-05/0.2794, allocations: 18.19 kB / 407.1 MB, free: 2.668 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006158/0.28, allocations: 365.2 kB / 407.5 MB, free: 2.551 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002504/0.2825, allocations: 1.704 MB / 409.2 MB, free: 1.492 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005006/0.283, allocations: 325.6 kB / 409.5 MB, free: 1.34 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002477/0.2833, allocations: 171.8 kB / 409.7 MB, free: 1.273 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.104e-05/0.2833, allocations: 12.44 kB / 409.7 MB, free: 1.266 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.202e-05/0.2833, allocations: 41.91 kB / 409.7 MB, free: 1.219 MB / 318.1 MB Notification: Performance of pre-optimization done (n=45): time 1.653e-06/0.2833, allocations: 4 kB / 409.7 MB, free: 1.215 MB / 318.1 MB Notification: Performance of matching and sorting (n=60): time 0.003633/0.287, allocations: 1.672 MB / 411.4 MB, free: 364 kB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.597e-05/0.287, allocations: 88.27 kB / 411.5 MB, free: 264 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000374/0.2874, allocations: 390.6 kB / 411.9 MB, free: 60 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.032e-05/0.2874, allocations: 37.92 kB / 411.9 MB, free: 20 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002321/0.2876, allocations: 295.8 kB / 412.2 MB, free: 15.77 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001676/0.2878, allocations: 215.6 kB / 412.4 MB, free: 15.59 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001572/0.288, allocations: 107.2 kB / 412.5 MB, free: 15.52 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001816/0.2881, allocations: 356.7 kB / 412.9 MB, free: 15.17 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003289/0.2885, allocations: 155.8 kB / 413 MB, free: 15.1 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004227/0.2889, allocations: 271 kB / 413.3 MB, free: 14.9 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007733/0.2897, allocations: 456.3 kB / 413.7 MB, free: 14.62 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.2897, allocations: 0.9688 kB / 413.7 MB, free: 14.62 MB / 334.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001184/0.2908, allocations: 0.5948 MB / 414.3 MB, free: 14.31 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.667e-05/0.2909, allocations: 10.2 kB / 414.3 MB, free: 14.31 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.728e-06/0.2909, allocations: 2.375 kB / 414.3 MB, free: 14.31 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003691/0.2913, allocations: 86.31 kB / 414.4 MB, free: 14.26 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005285/0.2918, allocations: 129.5 kB / 414.5 MB, free: 14.23 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002931/0.2947, allocations: 2.916 MB / 417.5 MB, free: 11.34 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004645/0.2952, allocations: 26.11 kB / 417.5 MB, free: 11.32 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.16e-05/0.2952, allocations: 21.09 kB / 417.5 MB, free: 11.32 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (73): * Single equations (assignments): 71 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002988/0.2955, allocations: 176.9 kB / 417.7 MB, free: 11.16 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001084/0.2956, allocations: 49.47 kB / 417.7 MB, free: 11.14 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001149/0.2957, allocations: 61.77 kB / 417.8 MB, free: 11.08 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.616e-06/0.2957, allocations: 10.44 kB / 417.8 MB, free: 11.08 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.741e-05/0.2958, allocations: 6 kB / 417.8 MB, free: 11.07 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.041e-06/0.2958, allocations: 0.9688 kB / 417.8 MB, free: 11.07 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002201/0.298, allocations: 1.236 MB / 419 MB, free: 10.19 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.999e-06/0.298, allocations: 1.062 kB / 419 MB, free: 10.19 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000428/0.2984, allocations: 105.9 kB / 419.1 MB, free: 10.16 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00031/0.2987, allocations: 75 kB / 419.2 MB, free: 10.12 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.222e-05/0.2987, allocations: 12 kB / 419.2 MB, free: 10.11 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002586/0.3013, allocations: 2.877 MB / 422.1 MB, free: 7.258 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.305e-06/0.3013, allocations: 2.031 kB / 422.1 MB, free: 7.258 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001489/0.3028, allocations: 0.8845 MB / 423 MB, free: 6.684 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00014/0.303, allocations: 49.52 kB / 423 MB, free: 6.648 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.332e-05/0.303, allocations: 11.31 kB / 423 MB, free: 6.641 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003973/0.3034, allocations: 38.25 kB / 423.1 MB, free: 6.625 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.845e-05/0.3035, allocations: 49.8 kB / 423.1 MB, free: 6.59 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.504e-05/0.3036, allocations: 24.61 kB / 423.2 MB, free: 6.578 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003102/0.3039, allocations: 276.7 kB / 423.4 MB, free: 6.406 MB / 334.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3039, allocations: 0 / 423.4 MB, free: 6.406 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006661/0.3045, allocations: 141.8 kB / 423.6 MB, free: 6.391 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 ($outputAlias_i2I,$outputAlias_i1B,$outputAlias_i2B) * 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 (54): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00179/0.3063, allocations: 1.442 MB / 425 MB, free: 5.285 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001343/0.3077, allocations: 0.6568 MB / 425.7 MB, free: 4.867 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.217e-06/0.3077, allocations: 0 / 425.7 MB, free: 4.867 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007377/0.3084, allocations: 463.1 kB / 426.1 MB, free: 4.535 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006008/0.309, allocations: 76.2 kB / 426.2 MB, free: 4.488 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007581/0.3166, allocations: 4.817 MB / 431 MB, free: 216 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006069/0.3172, allocations: 0.8643 MB / 431.9 MB, free: 15.32 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002694/0.3175, allocations: 64.56 kB / 431.9 MB, free: 15.25 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002984/0.3178, allocations: 199.4 kB / 432.1 MB, free: 15.06 MB / 350.1 MB Notification: Performance of SimCode: time 1.022e-06/0.3178, allocations: 4 kB / 432.1 MB, free: 15.05 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04387/0.3616, allocations: 10.81 MB / 442.9 MB, free: 4.188 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.62/11.99, allocations: 11.94 kB / 443 MB, free: 4.176 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CompareTransformers.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CompareTransformers_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_CompareTransformers_fmu --startTime=0 --stopTime=50 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_CompareTransformers.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CompareTransformers_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/CompareTransformers/CompareTransformers.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CompareTransformers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 658] Reference file matches [Calling sys.exit(0), Time elapsed: 18.19863094901666]