Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.QuasiStatic.Polyphase.Examples.TestSensors.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.QuasiStatic.Polyphase.Examples.TestSensors,fileNamePrefix="Modelica_trunk_Modelica_Electrical_QuasiStatic_Polyphase_Examples_TestSensors",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStatic.Polyphase.Examples.TestSensors,fileNamePrefix="Modelica_trunk_Modelica_Electrical_QuasiStatic_Polyphase_Examples_TestSensors",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001517/0.001517, allocations: 121.1 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001799/0.001799, allocations: 203.8 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.371/1.371, allocations: 227.4 MB / 246.9 MB, free: 10.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001268/0.001268, allocations: 63.89 kB / 358.2 MB, free: 13.38 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2566/0.2579, allocations: 50.54 MB / 408.8 MB, free: 1.488 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.Polyphase.Examples.TestSensors): time 0.01715/0.2751, allocations: 16.52 MB / 425.3 MB, free: 0.8984 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008762/0.2839, allocations: 4.134 MB / 429.4 MB, free: 12.75 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00307/0.287, allocations: 139.6 kB / 429.6 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01573/0.3028, allocations: 7.459 MB / 437 MB, free: 5.137 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005933/0.3088, allocations: 1.323 MB / 438.3 MB, free: 3.809 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003801/0.3126, allocations: 1.247 MB / 439.6 MB, free: 2.559 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.009813/0.3224, allocations: 8.253 MB / 447.8 MB, free: 10.28 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03426/0.3567, allocations: 22.51 MB / 470.3 MB, free: 3.574 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007475/0.3642, allocations: 4.82 MB / 475.2 MB, free: 14.74 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009589/0.3738, allocations: 5.33 MB / 480.5 MB, free: 9.395 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003735/0.3776, allocations: 1.383 MB / 481.9 MB, free: 8.012 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005241/0.3829, allocations: 1.664 MB / 483.5 MB, free: 6.348 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004081/0.387, allocations: 2.576 MB / 486.1 MB, free: 3.766 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008699/0.3957, allocations: 5.218 MB / 491.3 MB, free: 14.52 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02249/0.4182, allocations: 18.36 MB / 0.4977 GB, free: 12.11 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.247e-06/0.4183, allocations: 0 / 0.4977 GB, free: 12.11 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.4183, allocations: 0 / 0.4977 GB, free: 12.11 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0006066/0.4189, allocations: 0 / 0.4977 GB, free: 12.11 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2457 * Number of variables: 2457 Notification: Performance of Generate backend data structure: time 0.03322/0.4522, allocations: 10.63 MB / 0.5081 GB, free: 1.391 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.77e-05/0.4522, allocations: 8.031 kB / 0.5081 GB, free: 1.383 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005101/0.4573, allocations: 1.298 MB / 0.5094 GB, free: 76 kB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02067/0.478, allocations: 3.786 MB / 0.5131 GB, free: 12.28 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01253/0.4906, allocations: 5.366 MB / 0.5183 GB, free: 6.848 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007799/0.4914, allocations: 0.6785 MB / 0.519 GB, free: 6.168 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003587/0.495, allocations: 0.8945 MB / 0.5199 GB, free: 5.273 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03287/0.5279, allocations: 12.72 MB / 0.5323 GB, free: 8.523 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004131/0.5284, allocations: 11.95 kB / 0.5323 GB, free: 8.512 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003435/0.5318, allocations: 379.9 kB / 0.5327 GB, free: 8.141 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004586/0.5323, allocations: 395.1 kB / 0.533 GB, free: 7.754 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3941/0.9264, allocations: 11.41 MB / 0.5442 GB, free: 111.6 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08054/1.007, allocations: 43.72 MB / 0.5869 GB, free: 78.51 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01357/1.021, allocations: 10.49 MB / 0.5971 GB, free: 66.78 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003212/1.024, allocations: 1.675 MB / 0.5988 GB, free: 65.1 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003363/1.024, allocations: 219.9 kB / 0.599 GB, free: 64.86 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.694e-05/1.024, allocations: 58.75 kB / 0.599 GB, free: 64.79 MB / 462.1 MB Notification: Performance of pre-optimization done (n=223): time 6.532e-06/1.024, allocations: 0 / 0.599 GB, free: 64.79 MB / 462.1 MB Notification: Performance of matching and sorting (n=223): time 0.01232/1.037, allocations: 4.68 MB / 0.6036 GB, free: 60.09 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.397e-05/1.037, allocations: 73.41 kB / 0.6037 GB, free: 60.01 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005765/1.043, allocations: 2.932 MB / 0.6065 GB, free: 57.11 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002791/1.043, allocations: 65.64 kB / 0.6066 GB, free: 57.04 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00233/1.045, allocations: 3.977 MB / 0.6105 GB, free: 53.47 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008048/1.046, allocations: 0.8243 MB / 0.6113 GB, free: 52.66 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001709/1.048, allocations: 0.9527 MB / 0.6122 GB, free: 51.7 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 5.335e-05/1.048, allocations: 313.1 kB / 0.6125 GB, free: 51.39 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003867/1.052, allocations: 1.969 MB / 0.6144 GB, free: 49.41 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005138/1.057, allocations: 4.156 MB / 0.6185 GB, free: 44.19 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009016/1.066, allocations: 6.509 MB / 0.6248 GB, free: 36.63 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.56e-05/1.066, allocations: 20 kB / 0.6249 GB, free: 36.61 MB / 462.1 MB Notification: Performance of matching and sorting (n=592) (initialization): time 0.01522/1.081, allocations: 6.52 MB / 0.6312 GB, free: 30.08 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.133e-05/1.081, allocations: 40 kB / 0.6313 GB, free: 30.04 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001134/1.081, allocations: 79.98 kB / 0.6313 GB, free: 29.96 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001374/1.083, allocations: 412.5 kB / 0.6317 GB, free: 29.56 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006047/1.089, allocations: 1.061 MB / 0.6328 GB, free: 28.5 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007257/1.096, allocations: 4.381 MB / 0.6371 GB, free: 23.99 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006153/1.102, allocations: 0.6364 MB / 0.6377 GB, free: 23.35 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009493/1.103, allocations: 244 kB / 0.6379 GB, free: 23.11 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 340 * 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 (566): * Single equations (assignments): 564 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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): 1 system {(3,23,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.008216/1.112, allocations: 3.38 MB / 0.6412 GB, free: 19.71 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001127/1.113, allocations: 286.1 kB / 0.6415 GB, free: 19.43 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008352/1.121, allocations: 3.573 MB / 0.645 GB, free: 15.83 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006098/1.127, allocations: 2.807 MB / 0.6477 GB, free: 13.01 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.133e-05/1.127, allocations: 8 kB / 0.6477 GB, free: 13 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.737e-05/1.127, allocations: 11.95 kB / 0.6477 GB, free: 12.99 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02456/1.152, allocations: 9.868 MB / 0.6574 GB, free: 3.07 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.414e-05/1.152, allocations: 0 / 0.6574 GB, free: 3.07 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002521/1.154, allocations: 411.4 kB / 0.6578 GB, free: 2.668 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008753/1.155, allocations: 320.9 kB / 0.6581 GB, free: 2.352 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001706/1.156, allocations: 51.98 kB / 0.6581 GB, free: 2.301 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006034/1.162, allocations: 4.193 MB / 0.6622 GB, free: 13.96 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.477e-06/1.162, allocations: 3.984 kB / 0.6622 GB, free: 13.96 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008785/1.17, allocations: 5.134 MB / 0.6672 GB, free: 8.793 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00153/1.172, allocations: 0.6196 MB / 0.6678 GB, free: 8.152 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004433/1.172, allocations: 47.94 kB / 0.6679 GB, free: 8.105 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001236/1.174, allocations: 127.8 kB / 0.668 GB, free: 7.98 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003099/1.174, allocations: 149.8 kB / 0.6681 GB, free: 7.836 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001732/1.174, allocations: 64.05 kB / 0.6682 GB, free: 7.773 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.002968/1.177, allocations: 1.963 MB / 0.6701 GB, free: 5.801 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.91e-07/1.177, allocations: 0 / 0.6701 GB, free: 5.801 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004854/1.182, allocations: 1.984 MB / 0.6721 GB, free: 3.809 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 1 (sineVoltage.plug_p.reference.gamma) * 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 (215): * Single equations (assignments): 213 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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): 1 system {(3,23,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00751/1.19, allocations: 5.792 MB / 0.6777 GB, free: 13.97 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.006925/1.197, allocations: 4.628 MB / 0.6822 GB, free: 9.332 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.637e-06/1.197, allocations: 0 / 0.6822 GB, free: 9.332 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002373/1.199, allocations: 1.736 MB / 0.6839 GB, free: 7.586 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003463/1.202, allocations: 0.674 MB / 0.6846 GB, free: 6.926 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06144/1.264, allocations: 40.19 MB / 0.7238 GB, free: 12.09 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006048/1.27, allocations: 5.645 MB / 0.7293 GB, free: 6.406 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.003829/1.274, allocations: 1.694 MB / 0.731 GB, free: 4.707 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003355/1.277, allocations: 2.725 MB / 0.7337 GB, free: 1.98 MB / 0.5294 GB Notification: Performance of SimCode: time 9.52e-07/1.277, allocations: 0 / 0.7337 GB, free: 1.98 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.332/1.609, allocations: 89.74 MB / 0.8213 GB, free: 141.3 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.75/16.35, allocations: 15.67 kB / 0.8213 GB, free: 141.3 MB / 0.545 GB (rm -f Modelica_trunk_Modelica.Electrical.QuasiStatic.Polyphase.Examples.TestSensors.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.QuasiStatic.Polyphase.Examples.TestSensors.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.QuasiStatic.Polyphase.Examples.TestSensors.pipe >> ../files/Modelica_trunk_Modelica.Electrical.QuasiStatic.Polyphase.Examples.TestSensors.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.QuasiStatic.Polyphase.Examples.TestSensors_res.csv --start-time 0 --stop-time 0.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_trunk_Modelica_Electrical_QuasiStatic_Polyphase_Examples_TestSensors.fmu > Modelica_trunk_Modelica.Electrical.QuasiStatic.Polyphase.Examples.TestSensors.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.QuasiStatic.Polyphase.Examples.TestSensors_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/QuasiStatic/Polyphase/Examples/TestSensors/TestSensors.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.QuasiStatic.Polyphase.Examples.TestSensors.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches