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: translateModel(Modelica.Electrical.Analog.Examples.CompareTransformers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=100000,variableFilter="time|basicTransformer.i1|basicTransformer.i2|inductor22.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.CompareTransformers") translateModel(Modelica.Electrical.Analog.Examples.CompareTransformers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=100000,variableFilter="time|basicTransformer.i1|basicTransformer.i2|inductor22.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.CompareTransformers") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001724/0.001724, allocations: 113.7 kB / 18.45 MB, free: 4.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002054/0.002054, allocations: 206.8 kB / 19.4 MB, free: 3.695 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.316/2.316, allocations: 227.4 MB / 247.6 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002505/0.002505, allocations: 63.89 kB / 359.4 MB, free: 12.88 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.421/0.4235, allocations: 50.55 MB / 410 MB, free: 1.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CompareTransformers): time 0.01014/0.4338, allocations: 4.112 MB / 414.1 MB, free: 13.45 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003743/0.4376, allocations: 0.9502 MB / 415 MB, free: 12.49 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005986/0.4382, allocations: 8 kB / 415 MB, free: 12.48 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000456/0.4387, allocations: 91.08 kB / 415.1 MB, free: 12.39 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007128/0.4395, allocations: 186.4 kB / 415.3 MB, free: 12.21 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006614/0.4402, allocations: 159.7 kB / 415.5 MB, free: 12.05 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001114/0.4414, allocations: 0.6731 MB / 416.1 MB, free: 11.38 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005141/0.4419, allocations: 207 kB / 416.3 MB, free: 11.16 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005967/0.4425, allocations: 267 kB / 416.6 MB, free: 10.9 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005435/0.4431, allocations: 294.6 kB / 416.9 MB, free: 10.61 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001261/0.4432, allocations: 52 kB / 416.9 MB, free: 10.56 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001896/0.4434, allocations: 60 kB / 417 MB, free: 10.5 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001542/0.4436, allocations: 135.4 kB / 417.1 MB, free: 10.37 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003964/0.444, allocations: 306.5 kB / 417.4 MB, free: 10.07 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009741/0.445, allocations: 0.6433 MB / 418.1 MB, free: 9.43 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.03e-06/0.445, allocations: 0 / 418.1 MB, free: 9.43 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.515e-06/0.445, allocations: 4 kB / 418.1 MB, free: 9.426 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.202e-05/0.4451, allocations: 0 / 418.1 MB, free: 9.426 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.002031/0.4471, allocations: 0.8689 MB / 418.9 MB, free: 8.508 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.707e-05/0.4472, allocations: 8.031 kB / 419 MB, free: 8.5 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004275/0.4476, allocations: 76.27 kB / 419 MB, free: 8.426 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000857/0.4485, allocations: 391.5 kB / 419.4 MB, free: 8.008 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.551e-05/0.4485, allocations: 41.38 kB / 419.5 MB, free: 7.969 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001199/0.4487, allocations: 48.38 kB / 419.5 MB, free: 7.922 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001528/0.4502, allocations: 479.5 kB / 420 MB, free: 7.434 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.325e-05/0.4503, allocations: 0 / 420 MB, free: 7.434 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.589e-05/0.4504, allocations: 20 kB / 420 MB, free: 7.414 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.385e-05/0.4504, allocations: 12 kB / 420 MB, free: 7.402 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001229/0.4517, allocations: 344.3 kB / 420.3 MB, free: 7.066 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004834/0.4565, allocations: 1.677 MB / 422 MB, free: 5.293 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008673/0.4574, allocations: 265 kB / 422.3 MB, free: 5.016 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004755/0.4579, allocations: 141.7 kB / 422.4 MB, free: 4.871 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.707e-05/0.458, allocations: 4 kB / 422.4 MB, free: 4.867 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.705e-05/0.4581, allocations: 42.55 kB / 422.5 MB, free: 4.816 MB / 334.1 MB Notification: Performance of pre-optimization done (n=31): time 4.459e-06/0.4581, allocations: 0 / 422.5 MB, free: 4.816 MB / 334.1 MB Notification: Performance of matching and sorting (n=32): time 0.003671/0.4618, allocations: 0.9532 MB / 423.4 MB, free: 3.789 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.111e-05/0.4619, allocations: 85.09 kB / 423.5 MB, free: 3.688 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008144/0.4627, allocations: 385.6 kB / 423.9 MB, free: 3.305 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.927e-05/0.4628, allocations: 33.7 kB / 423.9 MB, free: 3.266 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003422/0.4632, allocations: 287.5 kB / 424.2 MB, free: 2.977 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001555/0.4633, allocations: 118.3 kB / 424.3 MB, free: 2.859 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002187/0.4636, allocations: 74.12 kB / 424.4 MB, free: 2.781 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002145/0.4638, allocations: 350.7 kB / 424.7 MB, free: 2.43 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004299/0.4643, allocations: 100.8 kB / 424.8 MB, free: 2.328 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005337/0.4648, allocations: 194.6 kB / 425 MB, free: 2.105 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009915/0.4658, allocations: 324.8 kB / 425.3 MB, free: 1.758 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.789e-06/0.4658, allocations: 0 / 425.3 MB, free: 1.758 MB / 334.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001729/0.4676, allocations: 446.6 kB / 425.8 MB, free: 1.309 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.211e-05/0.4676, allocations: 8 kB / 425.8 MB, free: 1.301 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.159e-05/0.4677, allocations: 0 / 425.8 MB, free: 1.301 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006581/0.4683, allocations: 77.66 kB / 425.8 MB, free: 1.219 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006845/0.469, allocations: 83.86 kB / 425.9 MB, free: 1.137 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004462/0.4735, allocations: 3.127 MB / 429 MB, free: 13.73 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006064/0.4742, allocations: 16 kB / 429.1 MB, free: 13.72 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.905e-05/0.4742, allocations: 16 kB / 429.1 MB, free: 13.7 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.0003644/0.4746, allocations: 173.9 kB / 429.2 MB, free: 13.52 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000164/0.4748, allocations: 43.53 kB / 429.3 MB, free: 13.48 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001336/0.475, allocations: 43.47 kB / 429.3 MB, free: 13.43 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.086e-05/0.475, allocations: 8 kB / 429.3 MB, free: 13.42 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.598e-05/0.475, allocations: 3.938 kB / 429.3 MB, free: 13.42 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.376e-06/0.475, allocations: 7.922 kB / 429.4 MB, free: 13.41 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002477/0.4775, allocations: 0.9286 MB / 430.3 MB, free: 12.42 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.597e-06/0.4776, allocations: 4 kB / 430.3 MB, free: 12.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003924/0.478, allocations: 43.91 kB / 430.3 MB, free: 12.37 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005387/0.4785, allocations: 81.64 kB / 430.4 MB, free: 12.29 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.779e-05/0.4786, allocations: 8 kB / 430.4 MB, free: 12.28 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004252/0.4828, allocations: 3.128 MB / 433.5 MB, free: 8.875 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.111e-05/0.4829, allocations: 7.969 kB / 433.5 MB, free: 8.867 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001797/0.4847, allocations: 0.6163 MB / 434.2 MB, free: 8.23 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002171/0.485, allocations: 120.6 kB / 434.3 MB, free: 8.094 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.056e-05/0.4851, allocations: 11.94 kB / 434.3 MB, free: 8.082 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006417/0.4857, allocations: 31.97 kB / 434.3 MB, free: 8.051 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001072/0.4858, allocations: 23.97 kB / 434.3 MB, free: 8.027 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.523e-05/0.4859, allocations: 12 kB / 434.4 MB, free: 8.016 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005365/0.4865, allocations: 275.2 kB / 434.6 MB, free: 7.746 MB / 350.1 MB Notification: Performance of sort global known variables: time 5.51e-07/0.4865, allocations: 0 / 434.6 MB, free: 7.746 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.00115/0.4876, allocations: 116 kB / 434.7 MB, free: 7.633 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.0002616/0.4879, allocations: 111.2 kB / 434.9 MB, free: 7.512 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001725/0.4897, allocations: 0.5077 MB / 435.4 MB, free: 6.98 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.559e-06/0.4897, allocations: 4.062 kB / 435.4 MB, free: 6.977 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0012/0.4909, allocations: 385.1 kB / 435.7 MB, free: 6.574 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001029/0.492, allocations: 61.48 kB / 435.8 MB, free: 6.516 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003317/0.4953, allocations: 0.9802 MB / 436.8 MB, free: 5.5 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006958/0.496, allocations: 0.8353 MB / 437.6 MB, free: 4.633 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001963/0.4963, allocations: 31.44 kB / 437.6 MB, free: 4.602 MB / 350.1 MB Notification: Performance of SimCode: time 1.854e-06/0.4963, allocations: 0 / 437.6 MB, free: 4.602 MB / 350.1 MB Notification: Performance of Templates: time 0.0261/0.5224, allocations: 9.068 MB / 446.7 MB, free: 11.54 MB / 366.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.CompareTransformers.makefile (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 & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.CompareTransformers -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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