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.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 3.2.3+maint.om/package.mo", uses=false) 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.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.Electrical.Analog.Examples.CompareTransformers,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_CompareTransformers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CompareTransformers,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_CompareTransformers",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.001364/0.001364, allocations: 114.5 kB / 17.73 MB, free: 5.328 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.001507/0.001507, allocations: 187 kB / 18.66 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.793/1.793, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001603/0.001603, allocations: 56.25 kB / 328.1 MB, free: 3.781 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1578/0.1594, allocations: 46.62 MB / 374.7 MB, free: 5.051 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CompareTransformers): time 0.008355/0.1678, allocations: 4.049 MB / 378.7 MB, free: 0.9805 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002986/0.1709, allocations: 0.9082 MB / 379.6 MB, free: 64 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000815/0.1718, allocations: 11.94 kB / 379.6 MB, free: 52 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.3354/0.5073, allocations: 88.06 kB / 379.7 MB, free: 9.184 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001282/0.5086, allocations: 173.8 kB / 379.9 MB, free: 9.184 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000699/0.5094, allocations: 144.6 kB / 380 MB, free: 9.184 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009586/0.5103, allocations: 0.6725 MB / 380.7 MB, free: 9.18 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004146/0.5108, allocations: 206.1 kB / 380.9 MB, free: 9.156 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003815/0.5111, allocations: 261.8 kB / 381.2 MB, free: 9.121 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004914/0.5116, allocations: 290 kB / 381.5 MB, free: 9.055 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001114/0.5118, allocations: 56.22 kB / 381.5 MB, free: 9.055 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000136/0.5119, allocations: 54.72 kB / 381.6 MB, free: 9.055 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001853/0.5121, allocations: 139 kB / 381.7 MB, free: 9.02 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000418/0.5125, allocations: 301.2 kB / 382 MB, free: 8.934 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009264/0.5135, allocations: 0.6406 MB / 382.6 MB, free: 8.828 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.57e-06/0.5135, allocations: 0.5625 kB / 382.6 MB, free: 8.828 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.504e-06/0.5135, allocations: 0 / 382.6 MB, free: 8.828 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.182e-05/0.5135, allocations: 1.219 kB / 382.6 MB, free: 8.828 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.001542/0.5151, allocations: 0.8555 MB / 383.5 MB, free: 8.285 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.775e-05/0.5151, allocations: 9.781 kB / 383.5 MB, free: 8.285 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001594/0.5153, allocations: 106.8 kB / 383.6 MB, free: 8.234 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001177/0.5154, allocations: 67.45 kB / 383.7 MB, free: 8.203 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006244/0.516, allocations: 381.9 kB / 384 MB, free: 7.934 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.487e-05/0.5161, allocations: 38.81 kB / 384.1 MB, free: 7.934 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.428e-05/0.5162, allocations: 48.91 kB / 384.1 MB, free: 7.934 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009923/0.5172, allocations: 0.498 MB / 384.6 MB, free: 7.855 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.737e-05/0.5172, allocations: 0 / 384.6 MB, free: 7.855 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.14e-05/0.5173, allocations: 19.44 kB / 384.6 MB, free: 7.855 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.933e-05/0.5173, allocations: 17.25 kB / 384.7 MB, free: 7.852 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007002/0.518, allocations: 343 kB / 385 MB, free: 7.746 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002851/0.5209, allocations: 1.712 MB / 386.7 MB, free: 6.684 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004533/0.5213, allocations: 268.8 kB / 387 MB, free: 6.551 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002404/0.5216, allocations: 145.1 kB / 387.1 MB, free: 6.488 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.455e-05/0.5216, allocations: 7.094 kB / 387.1 MB, free: 6.484 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.575e-05/0.5217, allocations: 37.41 kB / 387.2 MB, free: 6.441 MB / 318.1 MB Notification: Performance of pre-optimization done (n=31): time 1.443e-06/0.5217, allocations: 1.094 kB / 387.2 MB, free: 6.441 MB / 318.1 MB Notification: Performance of matching and sorting (n=32): time 0.001942/0.5236, allocations: 0.9677 MB / 388.1 MB, free: 5.766 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.794e-05/0.5237, allocations: 81.45 kB / 388.2 MB, free: 5.672 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005105/0.5242, allocations: 383 kB / 388.6 MB, free: 5.48 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.559e-05/0.5242, allocations: 36.05 kB / 388.6 MB, free: 5.441 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001749/0.5244, allocations: 296.5 kB / 388.9 MB, free: 5.203 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.588e-05/0.5245, allocations: 111.7 kB / 389 MB, free: 5.117 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001262/0.5246, allocations: 71.88 kB / 389.1 MB, free: 5.074 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001017/0.5247, allocations: 347.3 kB / 389.4 MB, free: 4.746 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002432/0.525, allocations: 103.8 kB / 389.5 MB, free: 4.711 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002998/0.5253, allocations: 189.6 kB / 389.7 MB, free: 4.57 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005042/0.5258, allocations: 310.2 kB / 390 MB, free: 4.363 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.466e-06/0.5258, allocations: 1.969 kB / 390 MB, free: 4.363 MB / 318.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.000823/0.5266, allocations: 455.8 kB / 390.5 MB, free: 4.156 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.843e-05/0.5267, allocations: 6.125 kB / 390.5 MB, free: 4.156 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.266e-06/0.5267, allocations: 1.625 kB / 390.5 MB, free: 4.156 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003483/0.527, allocations: 82.14 kB / 390.5 MB, free: 4.125 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003216/0.5274, allocations: 87.22 kB / 390.6 MB, free: 4.109 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00212/0.5295, allocations: 3.126 MB / 393.8 MB, free: 1.051 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002767/0.5298, allocations: 25.06 kB / 393.8 MB, free: 1.035 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.032e-05/0.5298, allocations: 17.17 kB / 393.8 MB, free: 1.031 MB / 318.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 (45): * Single equations (assignments): 43 * 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.0001888/0.53, allocations: 167.2 kB / 394 MB, free: 0.8789 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.937e-05/0.5301, allocations: 45.09 kB / 394 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.913e-05/0.5302, allocations: 45.84 kB / 394 MB, free: 0.8164 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.833e-06/0.5302, allocations: 4.438 kB / 394.1 MB, free: 0.8164 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.302e-05/0.5303, allocations: 4.969 kB / 394.1 MB, free: 0.8125 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.395e-06/0.5303, allocations: 3.031 kB / 394.1 MB, free: 0.8125 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001606/0.5319, allocations: 0.9478 MB / 395 MB, free: 216 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.038e-06/0.5319, allocations: 1.375 kB / 395 MB, free: 216 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002173/0.5321, allocations: 50.36 kB / 395.1 MB, free: 208 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002865/0.5324, allocations: 82.44 kB / 395.1 MB, free: 176 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.339e-05/0.5325, allocations: 7.75 kB / 395.1 MB, free: 172 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003084/0.5355, allocations: 3.126 MB / 398.3 MB, free: 13.1 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/0.5356, allocations: 5.312 kB / 398.3 MB, free: 13.09 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00102/0.5366, allocations: 0.6162 MB / 398.9 MB, free: 12.71 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000105/0.5367, allocations: 123.3 kB / 399 MB, free: 12.59 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.191e-05/0.5368, allocations: 10 kB / 399 MB, free: 12.58 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003407/0.5371, allocations: 27.89 kB / 399.1 MB, free: 12.57 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.997e-05/0.5372, allocations: 24.17 kB / 399.1 MB, free: 12.57 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.457e-05/0.5372, allocations: 13.12 kB / 399.1 MB, free: 12.57 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000338/0.5376, allocations: 271.3 kB / 399.4 MB, free: 12.43 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.5376, allocations: 4 kB / 399.4 MB, free: 12.43 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006431/0.5382, allocations: 118.2 kB / 399.5 MB, free: 12.41 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (inductor22.i,basicTransformer.i1,basicTransformer.i2) * 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): 24 * 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.001502/0.5397, allocations: 1.165 MB / 400.6 MB, free: 11.5 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001215/0.541, allocations: 0.514 MB / 401.2 MB, free: 11.17 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.556e-06/0.541, allocations: 1.969 kB / 401.2 MB, free: 11.17 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006881/0.5417, allocations: 375.6 kB / 401.5 MB, free: 10.91 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005654/0.5423, allocations: 66.34 kB / 401.6 MB, free: 10.87 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007055/0.5493, allocations: 4.181 MB / 405.8 MB, free: 8.281 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006518/0.55, allocations: 0.8423 MB / 406.6 MB, free: 7.574 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002315/0.5502, allocations: 44.61 kB / 406.7 MB, free: 7.559 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002603/0.5505, allocations: 173.7 kB / 406.8 MB, free: 7.426 MB / 334.1 MB Notification: Performance of SimCode: time 1.493e-06/0.5505, allocations: 0 / 406.8 MB, free: 7.426 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04878/0.5993, allocations: 9.137 MB / 416 MB, free: 3.539 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.06/11.66, allocations: 9.438 kB / 416 MB, free: 3.531 MB / 334.1 MB (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 --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) 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) Reference file matches