Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Electrical_QuasiStatic_SinglePhase_Ideal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Electrical_QuasiStatic_SinglePhase_Ideal",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001118/0.001117, allocations: 117.2 kB / 17.78 MB, free: 5.367 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: 200.6 kB / 18.73 MB, free: 4.426 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.32/1.32, allocations: 227.4 MB / 246.9 MB, free: 10.5 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2071/0.2071, allocations: 46.09 MB / 344.3 MB, free: 11.52 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001446/0.001446, allocations: 75.88 kB / 480.8 MB, free: 4.598 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2749/0.2764, allocations: 62.44 MB / 0.5305 GB, free: 13.43 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal): time 0.008561/0.285, allocations: 7.738 MB / 0.5381 GB, free: 7.258 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004398/0.2894, allocations: 2.418 MB / 0.5404 GB, free: 5.281 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009124/0.2903, allocations: 25 kB / 0.5404 GB, free: 5.281 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004104/0.2945, allocations: 1.806 MB / 0.5422 GB, free: 3.922 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002169/0.2966, allocations: 0.7137 MB / 0.5429 GB, free: 3.359 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002349/0.299, allocations: 1.073 MB / 0.544 GB, free: 2.566 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002143/0.3012, allocations: 1.415 MB / 0.5453 GB, free: 1.719 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001692/0.3029, allocations: 1.004 MB / 0.5463 GB, free: 1.102 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009697/0.3038, allocations: 0.6136 MB / 0.5469 GB, free: 0.7539 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001082/0.3049, allocations: 0.7253 MB / 0.5476 GB, free: 224 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002803/0.3052, allocations: 112 kB / 0.5477 GB, free: 112 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001022/0.3063, allocations: 339.8 kB / 0.5481 GB, free: 15.78 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003209/0.3066, allocations: 298.9 kB / 0.5483 GB, free: 15.48 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008082/0.3074, allocations: 0.6492 MB / 0.549 GB, free: 14.83 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002132/0.3096, allocations: 1.767 MB / 0.5507 GB, free: 13.06 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.955e-06/0.3096, allocations: 0 / 0.5507 GB, free: 13.06 MB / 414.1 MB Notification: Performance of FrontEnd: time 9.42e-07/0.3096, allocations: 0 / 0.5507 GB, free: 13.06 MB / 414.1 MB Notification: Performance of Transformations before backend: time 3.974e-05/0.3096, allocations: 0 / 0.5507 GB, free: 13.06 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 339 * Number of variables: 339 Notification: Performance of Generate backend data structure: time 0.007409/0.317, allocations: 2.421 MB / 0.5531 GB, free: 10.58 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.723e-05/0.3171, allocations: 8.031 kB / 0.5531 GB, free: 10.57 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002405/0.3173, allocations: 194.7 kB / 0.5533 GB, free: 10.38 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01013/0.3275, allocations: 1.397 MB / 0.5546 GB, free: 8.977 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001224/0.3287, allocations: 0.621 MB / 0.5552 GB, free: 8.316 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001133/0.3288, allocations: 99.02 kB / 0.5553 GB, free: 8.219 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003098/0.3292, allocations: 132.1 kB / 0.5554 GB, free: 8.09 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002992/0.3322, allocations: 1.479 MB / 0.5569 GB, free: 6.562 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.558e-05/0.3322, allocations: 19.83 kB / 0.5569 GB, free: 6.543 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001603/0.3324, allocations: 52 kB / 0.557 GB, free: 6.492 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.425e-05/0.3324, allocations: 36 kB / 0.557 GB, free: 6.457 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002873/0.3353, allocations: 1.505 MB / 0.5585 GB, free: 4.945 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008304/0.3436, allocations: 5.604 MB / 0.5639 GB, free: 15.01 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002358/0.346, allocations: 2.175 MB / 0.5661 GB, free: 12.6 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009991/0.347, allocations: 0.6476 MB / 0.5667 GB, free: 11.95 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000207/0.3472, allocations: 191.2 kB / 0.5669 GB, free: 11.72 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.239e-05/0.3473, allocations: 51.5 kB / 0.5669 GB, free: 11.66 MB / 430.1 MB Notification: Performance of pre-optimization done (n=127): time 2.845e-06/0.3473, allocations: 0 / 0.5669 GB, free: 11.66 MB / 430.1 MB Notification: Performance of matching and sorting (n=127): time 0.00884/0.3561, allocations: 3.094 MB / 0.5699 GB, free: 8.539 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.699e-05/0.3562, allocations: 94.11 kB / 0.57 GB, free: 8.43 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005381/0.3568, allocations: 469.8 kB / 0.5705 GB, free: 7.961 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001281/0.3569, allocations: 45.7 kB / 0.5705 GB, free: 7.91 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002837/0.3572, allocations: 480.9 kB / 0.571 GB, free: 7.434 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003221/0.3575, allocations: 436.2 kB / 0.5714 GB, free: 7.004 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003438/0.3579, allocations: 218.9 kB / 0.5716 GB, free: 6.785 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.000152/0.358, allocations: 382.8 kB / 0.572 GB, free: 6.402 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008309/0.3589, allocations: 458.4 kB / 0.5724 GB, free: 5.953 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009945/0.3599, allocations: 0.6996 MB / 0.5731 GB, free: 5.164 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001893/0.3618, allocations: 1.198 MB / 0.5743 GB, free: 3.867 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.714e-06/0.3618, allocations: 4 kB / 0.5743 GB, free: 3.863 MB / 430.1 MB Notification: Performance of matching and sorting (n=161) (initialization): time 0.002867/0.3647, allocations: 1.598 MB / 0.5758 GB, free: 2.258 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.18e-05/0.3647, allocations: 11.94 kB / 0.5758 GB, free: 2.246 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.612e-05/0.3647, allocations: 4 kB / 0.5758 GB, free: 2.242 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001575/0.3663, allocations: 0.5243 MB / 0.5764 GB, free: 1.715 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000793/0.3671, allocations: 203.6 kB / 0.5766 GB, free: 1.516 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001915/0.3673, allocations: 53.2 kB / 0.5766 GB, free: 1.461 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006731/0.368, allocations: 127.1 kB / 0.5767 GB, free: 1.336 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001014/0.3681, allocations: 47.94 kB / 0.5768 GB, free: 1.289 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * Number of states: 0 () * Number of discrete variables: 4 (booleanStep4.y,booleanStep3.y,booleanStep2.y,booleanStep1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (112): * Single equations (assignments): 111 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(20,28)} Notification: Performance of prepare postOptimizeDAE: time 0.000434/0.3685, allocations: 276.9 kB / 0.577 GB, free: 1.012 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001682/0.3687, allocations: 83.48 kB / 0.5771 GB, free: 0.9297 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002806/0.3715, allocations: 1.571 MB / 0.5786 GB, free: 15.35 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.833e-05/0.3716, allocations: 19.94 kB / 0.5787 GB, free: 15.33 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.021e-06/0.3716, allocations: 0 / 0.5787 GB, free: 15.33 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.258e-05/0.3716, allocations: 7.969 kB / 0.5787 GB, free: 15.32 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00448/0.3761, allocations: 2.856 MB / 0.5815 GB, free: 12.4 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.791e-06/0.3761, allocations: 0 / 0.5815 GB, free: 12.4 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006608/0.3768, allocations: 147.8 kB / 0.5816 GB, free: 12.25 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001414/0.3782, allocations: 0.5184 MB / 0.5821 GB, free: 11.73 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.048e-05/0.3783, allocations: 31.98 kB / 0.5821 GB, free: 11.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002901/0.3786, allocations: 68.73 kB / 0.5822 GB, free: 11.63 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.354e-06/0.3786, allocations: 4 kB / 0.5822 GB, free: 11.63 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003806/0.3824, allocations: 2.329 MB / 0.5845 GB, free: 9.277 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003967/0.3828, allocations: 288.2 kB / 0.5848 GB, free: 8.977 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001292/0.3829, allocations: 27.89 kB / 0.5848 GB, free: 8.949 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006037/0.3836, allocations: 47.97 kB / 0.5848 GB, free: 8.902 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001822/0.3838, allocations: 73.2 kB / 0.5849 GB, free: 8.828 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.65e-05/0.3838, allocations: 36 kB / 0.5849 GB, free: 8.793 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0003388/0.3842, allocations: 314.9 kB / 0.5852 GB, free: 8.484 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3842, allocations: 0 / 0.5852 GB, free: 8.484 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0009208/0.3851, allocations: 343.3 kB / 0.5856 GB, free: 8.148 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (voltageSource.pin_p.reference.gamma) * Number of discrete variables: 4 (booleanStep1.y,booleanStep2.y,booleanStep3.y,booleanStep4.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (84): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(20,28)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004293/0.3894, allocations: 2.947 MB / 0.5884 GB, free: 5.172 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002808/0.3922, allocations: 1.358 MB / 0.5898 GB, free: 3.812 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/0.3923, allocations: 0 / 0.5898 GB, free: 3.812 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001689/0.394, allocations: 0.7673 MB / 0.5905 GB, free: 3.047 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007519/0.3947, allocations: 116 kB / 0.5906 GB, free: 2.934 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01321/0.4079, allocations: 8.429 MB / 0.5989 GB, free: 10.21 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006481/0.4086, allocations: 1.04 MB / 0.5999 GB, free: 9.145 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.000441/0.4091, allocations: 106.8 kB / 0.6 GB, free: 9.035 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004905/0.4096, allocations: 391.3 kB / 0.6004 GB, free: 8.652 MB / 462.1 MB Notification: Performance of SimCode: time 8.81e-07/0.4096, allocations: 0 / 0.6004 GB, free: 8.652 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04763/0.4572, allocations: 21.83 MB / 0.6217 GB, free: 3.035 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.13/12.59, allocations: 9 kB / 0.6217 GB, free: 3.027 MB / 478.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 ModelicaTest_trunk_ModelicaTest_Electrical_QuasiStatic_SinglePhase_Ideal.fmu > ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Electrical/QuasiStatic/SinglePhase/Ideal/Ideal.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches