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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001777/0.001777, allocations: 109.1 kB / 21.22 MB, free: 0.7344 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002096/0.002096, allocations: 210.2 kB / 24.53 MB, free: 4.07 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.508/1.508, allocations: 230.5 MB / 258.2 MB, free: 8.051 MB / 206.1 MB " [Timeout remaining time 178] 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CompareTransformers,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_CompareTransformers",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002321/0.002321, allocations: 55.91 kB / 378.6 MB, free: 3.074 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2695/0.2718, allocations: 53.42 MB / 432 MB, free: 6.676 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CompareTransformers): time 0.005658/0.2775, allocations: 4.14 MB / 436.1 MB, free: 2.52 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002117/0.2796, allocations: 0.9658 MB / 437.1 MB, free: 1.547 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002427/0.2798, allocations: 11.94 kB / 437.1 MB, free: 1.535 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002398/0.2801, allocations: 91.08 kB / 437.2 MB, free: 1.445 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003425/0.2804, allocations: 190.4 kB / 437.4 MB, free: 1.258 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003685/0.2808, allocations: 167.7 kB / 437.6 MB, free: 1.094 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006748/0.2814, allocations: 0.6732 MB / 438.2 MB, free: 428 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002708/0.2817, allocations: 147.7 kB / 438.4 MB, free: 272 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003713/0.2821, allocations: 271 kB / 438.6 MB, free: 0 / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000379/0.2825, allocations: 294.8 kB / 438.9 MB, free: 15.71 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.897e-05/0.2825, allocations: 56 kB / 439 MB, free: 15.65 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000116/0.2827, allocations: 59.94 kB / 439 MB, free: 15.59 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001057/0.2828, allocations: 131.5 kB / 439.2 MB, free: 15.46 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002631/0.283, allocations: 302.5 kB / 439.5 MB, free: 15.17 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006619/0.2837, allocations: 0.6504 MB / 440.1 MB, free: 14.52 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.2837, allocations: 0 / 440.1 MB, free: 14.52 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.2837, allocations: 0 / 440.1 MB, free: 14.52 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.866e-06/0.2837, allocations: 0 / 440.1 MB, free: 14.52 MB / 350.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.001445/0.2851, allocations: 0.8086 MB / 440.9 MB, free: 13.68 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.774e-05/0.2852, allocations: 12.03 kB / 440.9 MB, free: 13.67 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 5.678e-05/0.2853, allocations: 29.42 kB / 441 MB, free: 13.64 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000141/0.2854, allocations: 107.9 kB / 441.1 MB, free: 13.52 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003205/0.2857, allocations: 96.48 kB / 441.2 MB, free: 13.43 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005777/0.2863, allocations: 318 kB / 441.5 MB, free: 13.09 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.945e-05/0.2863, allocations: 45.69 kB / 441.5 MB, free: 13.05 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.47e-05/0.2864, allocations: 56.36 kB / 441.6 MB, free: 13 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008587/0.2873, allocations: 0.5308 MB / 442.1 MB, free: 12.45 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.89e-05/0.2873, allocations: 3.953 kB / 442.1 MB, free: 12.44 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.35e-05/0.2873, allocations: 28 kB / 442.1 MB, free: 12.41 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.476e-05/0.2874, allocations: 12 kB / 442.2 MB, free: 12.4 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006662/0.288, allocations: 361 kB / 442.5 MB, free: 12.05 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002827/0.2909, allocations: 1.721 MB / 444.2 MB, free: 10.25 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000535/0.2914, allocations: 309.1 kB / 444.5 MB, free: 9.926 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003075/0.2917, allocations: 184.6 kB / 444.7 MB, free: 9.746 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.389e-05/0.2917, allocations: 4.375 kB / 444.7 MB, free: 9.742 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.486e-05/0.2918, allocations: 54.34 kB / 444.8 MB, free: 9.68 MB / 350.1 MB Notification: Performance of pre-optimization done (n=45): time 1.543e-06/0.2918, allocations: 0 / 444.8 MB, free: 9.68 MB / 350.1 MB Notification: Performance of matching and sorting (n=60): time 0.003998/0.2958, allocations: 1.672 MB / 446.4 MB, free: 7.941 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.744e-05/0.2958, allocations: 89.05 kB / 446.5 MB, free: 7.836 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004609/0.2963, allocations: 389.6 kB / 446.9 MB, free: 7.449 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.797e-05/0.2963, allocations: 37.7 kB / 446.9 MB, free: 7.406 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002064/0.2965, allocations: 292.9 kB / 447.2 MB, free: 7.113 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001807/0.2967, allocations: 226 kB / 447.4 MB, free: 6.891 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001582/0.2969, allocations: 106.3 kB / 447.6 MB, free: 6.781 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001741/0.297, allocations: 358.8 kB / 447.9 MB, free: 6.422 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003402/0.2974, allocations: 161.2 kB / 448.1 MB, free: 6.262 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004052/0.2978, allocations: 265 kB / 448.3 MB, free: 5.969 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007618/0.2986, allocations: 457.4 kB / 448.8 MB, free: 5.488 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.444e-06/0.2986, allocations: 0 / 448.8 MB, free: 5.488 MB / 350.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001178/0.2997, allocations: 0.5974 MB / 449.4 MB, free: 4.879 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.934e-05/0.2998, allocations: 10.5 kB / 449.4 MB, free: 4.871 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.326e-05/0.2998, allocations: 4 kB / 449.4 MB, free: 4.867 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003611/0.3001, allocations: 81.69 kB / 449.5 MB, free: 4.781 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005393/0.3007, allocations: 131.8 kB / 449.6 MB, free: 4.652 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003197/0.3039, allocations: 2.901 MB / 452.5 MB, free: 1.52 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006339/0.3045, allocations: 19.98 kB / 452.5 MB, free: 1.5 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.453e-05/0.3046, allocations: 28 kB / 452.5 MB, free: 1.473 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 (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.0003487/0.3049, allocations: 181.8 kB / 452.7 MB, free: 1.285 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001235/0.305, allocations: 47.72 kB / 452.8 MB, free: 1.238 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001115/0.3051, allocations: 64.19 kB / 452.8 MB, free: 1.176 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.332e-06/0.3051, allocations: 7.938 kB / 452.8 MB, free: 1.168 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.193e-05/0.3052, allocations: 4 kB / 452.8 MB, free: 1.164 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.917e-06/0.3052, allocations: 3.984 kB / 452.8 MB, free: 1.16 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002082/0.3072, allocations: 1.249 MB / 454.1 MB, free: 15.85 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.188e-06/0.3073, allocations: 64 / 454.1 MB, free: 15.85 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004236/0.3077, allocations: 103.9 kB / 454.2 MB, free: 15.75 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002804/0.308, allocations: 77.66 kB / 454.3 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.269e-05/0.308, allocations: 16 kB / 454.3 MB, free: 15.65 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002549/0.3105, allocations: 2.881 MB / 457.2 MB, free: 12.54 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.3105, allocations: 0 / 457.2 MB, free: 12.54 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001443/0.312, allocations: 0.8792 MB / 458 MB, free: 11.63 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001031/0.3121, allocations: 51.58 kB / 458.1 MB, free: 11.58 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.08e-05/0.3121, allocations: 12 kB / 458.1 MB, free: 11.57 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004156/0.3126, allocations: 43.97 kB / 458.1 MB, free: 11.53 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.915e-05/0.3127, allocations: 39.86 kB / 458.2 MB, free: 11.49 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.299e-05/0.3127, allocations: 16 kB / 458.2 MB, free: 11.47 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003312/0.313, allocations: 279.2 kB / 458.5 MB, free: 11.2 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.313, allocations: 0 / 458.5 MB, free: 11.2 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006502/0.3137, allocations: 148 kB / 458.6 MB, free: 11.06 MB / 366.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.001762/0.3154, allocations: 1.43 MB / 460 MB, free: 9.59 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001278/0.3167, allocations: 0.6684 MB / 460.7 MB, free: 8.898 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.3167, allocations: 0 / 460.7 MB, free: 8.898 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000691/0.3174, allocations: 461.8 kB / 461.2 MB, free: 8.422 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005431/0.3179, allocations: 79.53 kB / 461.2 MB, free: 8.348 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007336/0.3253, allocations: 4.855 MB / 466.1 MB, free: 3.309 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005577/0.3258, allocations: 0.8683 MB / 467 MB, free: 2.414 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002432/0.3261, allocations: 64.56 kB / 467 MB, free: 2.348 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002845/0.3264, allocations: 203.4 kB / 467.2 MB, free: 2.148 MB / 366.1 MB Notification: Performance of SimCode: time 1.433e-06/0.3264, allocations: 0 / 467.2 MB, free: 2.148 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04125/0.3676, allocations: 10.87 MB / 478.1 MB, free: 7.445 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.91/12.28, allocations: 11.66 kB / 478.1 MB, free: 7.438 MB / 382.1 MB " [Timeout remaining time 648] (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 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_CompareTransformers.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.CompareTransformers_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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) [Timeout 660] "" [Timeout remaining time 658] Reference file matches [Calling sys.exit(0), Time elapsed: 19.068058463046327]