Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.CompareTransformers.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CompareTransformers,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_CompareTransformers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CompareTransformers,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_CompareTransformers",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001052/0.001052, allocations: 118.8 kB / 17.79 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001082/0.001082, allocations: 202 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.344/1.344, allocations: 227.4 MB / 246.9 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001241/0.001241, allocations: 63.89 kB / 358.3 MB, free: 13.4 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2855/0.2868, allocations: 50.53 MB / 408.8 MB, free: 1.543 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CompareTransformers): time 0.004839/0.2916, allocations: 4.122 MB / 412.9 MB, free: 13.4 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001761/0.2934, allocations: 0.9541 MB / 413.9 MB, free: 12.44 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003451/0.2938, allocations: 8 kB / 413.9 MB, free: 12.43 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002888/0.2941, allocations: 91.06 kB / 414 MB, free: 12.34 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004837/0.2946, allocations: 182.4 kB / 414.1 MB, free: 12.16 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004206/0.2951, allocations: 163.7 kB / 414.3 MB, free: 12 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000742/0.2958, allocations: 0.6771 MB / 415 MB, free: 11.32 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003165/0.2961, allocations: 199 kB / 415.2 MB, free: 11.12 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004148/0.2966, allocations: 263 kB / 415.4 MB, free: 10.86 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004404/0.297, allocations: 298.6 kB / 415.7 MB, free: 10.57 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001101/0.2971, allocations: 52 kB / 415.8 MB, free: 10.52 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001742/0.2973, allocations: 60 kB / 415.8 MB, free: 10.46 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001146/0.2974, allocations: 135.5 kB / 416 MB, free: 10.32 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003111/0.2978, allocations: 306.5 kB / 416.3 MB, free: 10.02 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006347/0.2984, allocations: 0.6438 MB / 416.9 MB, free: 9.379 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.758e-06/0.2984, allocations: 0 / 416.9 MB, free: 9.379 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.2984, allocations: 0 / 416.9 MB, free: 9.379 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.937e-05/0.2984, allocations: 0 / 416.9 MB, free: 9.379 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: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.001606/0.3001, allocations: 0.865 MB / 417.8 MB, free: 8.465 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.705e-05/0.3001, allocations: 8.031 kB / 417.8 MB, free: 8.457 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001479/0.3003, allocations: 111.9 kB / 417.9 MB, free: 8.336 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002897/0.3005, allocations: 84.16 kB / 418 MB, free: 8.254 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000554/0.3011, allocations: 387.5 kB / 418.3 MB, free: 7.84 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.309e-05/0.3012, allocations: 41.69 kB / 418.4 MB, free: 7.801 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.926e-05/0.3012, allocations: 52.38 kB / 418.4 MB, free: 7.75 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007999/0.302, allocations: 0.4996 MB / 418.9 MB, free: 7.23 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.584e-05/0.3021, allocations: 0 / 418.9 MB, free: 7.23 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.845e-05/0.3021, allocations: 23.94 kB / 419 MB, free: 7.207 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.285e-05/0.3021, allocations: 12 kB / 419 MB, free: 7.195 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006338/0.3028, allocations: 344.6 kB / 419.3 MB, free: 6.863 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002705/0.3055, allocations: 1.713 MB / 421 MB, free: 5.051 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004306/0.3059, allocations: 269.1 kB / 421.3 MB, free: 4.77 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002252/0.3062, allocations: 140.5 kB / 421.4 MB, free: 4.629 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.346e-05/0.3062, allocations: 8 kB / 421.4 MB, free: 4.621 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.143e-05/0.3063, allocations: 46.48 kB / 421.5 MB, free: 4.566 MB / 334.1 MB Notification: Performance of pre-optimization done (n=31): time 1.773e-06/0.3063, allocations: 0 / 421.5 MB, free: 4.566 MB / 334.1 MB Notification: Performance of matching and sorting (n=32): time 0.001853/0.3081, allocations: 0.9579 MB / 422.4 MB, free: 3.531 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.909e-05/0.3082, allocations: 85.09 kB / 422.5 MB, free: 3.43 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003866/0.3086, allocations: 385.6 kB / 422.9 MB, free: 3.043 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.326e-05/0.3086, allocations: 29.7 kB / 422.9 MB, free: 3.008 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000176/0.3088, allocations: 303.3 kB / 423.2 MB, free: 2.703 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.425e-05/0.3089, allocations: 114.3 kB / 423.3 MB, free: 2.59 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001152/0.309, allocations: 74.05 kB / 423.4 MB, free: 2.512 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001221/0.3091, allocations: 350.8 kB / 423.7 MB, free: 2.16 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002081/0.3094, allocations: 100.8 kB / 423.8 MB, free: 2.059 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002462/0.3096, allocations: 190.6 kB / 424 MB, free: 1.84 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004722/0.3101, allocations: 317 kB / 424.3 MB, free: 1.5 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.3101, allocations: 4 kB / 424.3 MB, free: 1.496 MB / 334.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0008684/0.311, allocations: 450.3 kB / 424.8 MB, free: 1.043 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.103e-05/0.311, allocations: 4.312 kB / 424.8 MB, free: 1.039 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.112e-05/0.311, allocations: 8 kB / 424.8 MB, free: 1.031 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003551/0.3114, allocations: 81.59 kB / 424.9 MB, free: 0.9453 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003282/0.3117, allocations: 71.91 kB / 424.9 MB, free: 0.875 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002536/0.3143, allocations: 3.135 MB / 428.1 MB, free: 13.47 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002896/0.3146, allocations: 19.92 kB / 428.1 MB, free: 13.45 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.503e-05/0.3146, allocations: 16 kB / 428.1 MB, free: 13.43 MB / 350.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.0001918/0.3148, allocations: 165.7 kB / 428.3 MB, free: 13.26 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.312e-05/0.3149, allocations: 47.38 kB / 428.3 MB, free: 13.21 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.959e-05/0.315, allocations: 55.47 kB / 428.4 MB, free: 13.15 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.398e-06/0.315, allocations: 4 kB / 428.4 MB, free: 13.15 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.041e-06/0.315, allocations: 0 / 428.4 MB, free: 13.15 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.793e-06/0.315, allocations: 3.984 kB / 428.4 MB, free: 13.14 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001329/0.3164, allocations: 0.9442 MB / 429.3 MB, free: 12.14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.995e-06/0.3164, allocations: 0 / 429.3 MB, free: 12.14 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001877/0.3166, allocations: 51.91 kB / 429.4 MB, free: 12.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002722/0.3169, allocations: 77.64 kB / 429.4 MB, free: 12 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.605e-05/0.3169, allocations: 15.94 kB / 429.5 MB, free: 11.99 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00279/0.3197, allocations: 3.124 MB / 432.6 MB, free: 8.59 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.3197, allocations: 0 / 432.6 MB, free: 8.59 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001248/0.321, allocations: 0.6096 MB / 433.2 MB, free: 7.957 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000159/0.3212, allocations: 120.6 kB / 433.3 MB, free: 7.82 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.725e-05/0.3212, allocations: 11.94 kB / 433.3 MB, free: 7.809 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004736/0.3217, allocations: 27.97 kB / 433.4 MB, free: 7.781 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.421e-05/0.3218, allocations: 27.97 kB / 433.4 MB, free: 7.754 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.392e-05/0.3219, allocations: 12 kB / 433.4 MB, free: 7.742 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000446/0.3223, allocations: 271.2 kB / 433.7 MB, free: 7.48 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3223, allocations: 0 / 433.7 MB, free: 7.48 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006357/0.323, allocations: 120 kB / 433.8 MB, free: 7.363 MB / 350.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.00118/0.3242, allocations: 1.177 MB / 435 MB, free: 6.148 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008742/0.3251, allocations: 0.5143 MB / 435.5 MB, free: 5.613 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.3251, allocations: 0 / 435.5 MB, free: 5.613 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005601/0.3256, allocations: 389.8 kB / 435.8 MB, free: 5.207 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004877/0.3261, allocations: 56.33 kB / 435.9 MB, free: 5.156 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005365/0.3315, allocations: 4.202 MB / 440.1 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003824/0.3319, allocations: 0.847 MB / 441 MB, free: 15.91 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001698/0.3321, allocations: 43.3 kB / 441 MB, free: 15.87 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000196/0.3323, allocations: 175.2 kB / 441.2 MB, free: 15.7 MB / 366.1 MB Notification: Performance of SimCode: time 5.41e-07/0.3323, allocations: 0 / 441.2 MB, free: 15.7 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03435/0.3667, allocations: 9.183 MB / 450.3 MB, free: 6.691 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.884/10.25, allocations: 19.47 kB / 450.4 MB, free: 6.676 MB / 366.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.CompareTransformers.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.CompareTransformers_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_CompareTransformers_fmu --startTime=0 --stopTime=50 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_CompareTransformers.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.CompareTransformers_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/CompareTransformers/CompareTransformers.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.CompareTransformers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches