Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection.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.SerialConnection,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Electrical_QuasiStatic_SinglePhase_SerialConnection",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Electrical_QuasiStatic_SinglePhase_SerialConnection",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001379/0.001379, allocations: 109.2 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001499/0.001499, allocations: 209.7 kB / 18.14 MB, free: 5.344 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.3 MB, free: 9.039 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1895/0.1895, allocations: 46.12 MB / 343.6 MB, free: 11.58 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001355/0.001355, allocations: 72.61 kB / 416.9 MB, free: 20.08 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09886/0.1002, allocations: 62.44 MB / 479.4 MB, free: 5.609 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection): time 0.007757/0.108, allocations: 7.448 MB / 486.8 MB, free: 14.12 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003978/0.112, allocations: 2.342 MB / 489.2 MB, free: 11.77 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008356/0.1129, allocations: 27.94 kB / 489.2 MB, free: 11.74 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003383/0.1163, allocations: 1.646 MB / 490.9 MB, free: 10.09 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001708/0.118, allocations: 0.6216 MB / 491.5 MB, free: 9.473 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001361/0.1194, allocations: 0.7156 MB / 492.2 MB, free: 8.762 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001053/0.1205, allocations: 1.194 MB / 493.4 MB, free: 7.562 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001145/0.1216, allocations: 0.8422 MB / 494.2 MB, free: 6.703 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004795/0.1221, allocations: 493.9 kB / 494.7 MB, free: 6.219 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00054/0.1227, allocations: 0.6418 MB / 495.4 MB, free: 5.574 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000117/0.1228, allocations: 76 kB / 495.4 MB, free: 5.5 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005449/0.1233, allocations: 271.8 kB / 495.7 MB, free: 5.234 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001752/0.1235, allocations: 246.9 kB / 495.9 MB, free: 4.992 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004386/0.124, allocations: 0.5751 MB / 496.5 MB, free: 4.414 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001236/0.1252, allocations: 1.557 MB / 498.1 MB, free: 2.852 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.549e-06/0.1252, allocations: 7.938 kB / 498.1 MB, free: 2.844 MB / 366.1 MB Notification: Performance of FrontEnd: time 7.82e-07/0.1252, allocations: 0 / 498.1 MB, free: 2.844 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.059e-05/0.1253, allocations: 0 / 498.1 MB, free: 2.844 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 338 * Number of variables: 338 Notification: Performance of Generate backend data structure: time 0.004154/0.1294, allocations: 1.8 MB / 499.9 MB, free: 0.9922 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.761e-05/0.1295, allocations: 8.875 kB / 499.9 MB, free: 0.9844 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001993/0.1297, allocations: 198.7 kB / 0.4884 GB, free: 0.7812 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00986/0.1395, allocations: 1.326 MB / 0.4896 GB, free: 15.45 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008831/0.1404, allocations: 0.5529 MB / 0.4902 GB, free: 14.86 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.107e-05/0.1405, allocations: 103 kB / 0.4903 GB, free: 14.76 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001849/0.1407, allocations: 139.8 kB / 0.4904 GB, free: 14.62 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002145/0.1429, allocations: 1.242 MB / 0.4916 GB, free: 13.36 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.587e-05/0.1429, allocations: 4 kB / 0.4916 GB, free: 13.35 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001158/0.143, allocations: 52 kB / 0.4917 GB, free: 13.3 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.581e-05/0.1431, allocations: 39.98 kB / 0.4917 GB, free: 13.26 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002288/0.1454, allocations: 1.455 MB / 0.4931 GB, free: 11.8 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007584/0.1529, allocations: 5.823 MB / 0.4988 GB, free: 5.488 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001729/0.1547, allocations: 0.9458 MB / 0.4998 GB, free: 4.512 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008375/0.1556, allocations: 371.7 kB / 0.5001 GB, free: 4.148 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001826/0.1558, allocations: 187.2 kB / 0.5003 GB, free: 3.93 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.068e-05/0.1558, allocations: 43.56 kB / 0.5003 GB, free: 3.879 MB / 382.1 MB Notification: Performance of pre-optimization done (n=90): time 3.347e-06/0.1558, allocations: 0 / 0.5003 GB, free: 3.879 MB / 382.1 MB Notification: Performance of matching and sorting (n=90): time 0.002151/0.158, allocations: 1.198 MB / 0.5015 GB, free: 2.633 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.764e-05/0.158, allocations: 60.41 kB / 0.5016 GB, free: 2.562 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009185/0.1589, allocations: 0.8285 MB / 0.5024 GB, free: 1.719 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.234e-05/0.159, allocations: 41.7 kB / 0.5024 GB, free: 1.672 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002899/0.1593, allocations: 0.4947 MB / 0.5029 GB, free: 1.168 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002111/0.1595, allocations: 311.5 kB / 0.5032 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002969/0.1598, allocations: 202.8 kB / 0.5034 GB, free: 0.6523 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001482/0.16, allocations: 394.7 kB / 0.5038 GB, free: 264 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.1664/0.3264, allocations: 342.7 kB / 0.5041 GB, free: 39.66 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000863/0.3273, allocations: 0.6134 MB / 0.5047 GB, free: 39.36 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00127/0.3286, allocations: 0.995 MB / 0.5057 GB, free: 39.04 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.704e-06/0.3286, allocations: 8.156 kB / 0.5057 GB, free: 39.04 MB / 382.1 MB Notification: Performance of matching and sorting (n=143) (initialization): time 0.002065/0.3307, allocations: 1.176 MB / 0.5068 GB, free: 38.92 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.615e-05/0.3307, allocations: 13.08 kB / 0.5068 GB, free: 38.92 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.519e-05/0.3307, allocations: 9.125 kB / 0.5068 GB, free: 38.92 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002727/0.331, allocations: 69.03 kB / 0.5069 GB, free: 38.9 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009589/0.332, allocations: 263 kB / 0.5071 GB, free: 38.88 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001353/0.3333, allocations: 2.623 MB / 0.5097 GB, free: 36.38 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007737/0.3341, allocations: 154.4 kB / 0.5099 GB, free: 36.36 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.705e-05/0.3342, allocations: 49.28 kB / 0.5099 GB, free: 36.36 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * 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 (141): * Single equations (assignments): 139 * 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,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003316/0.3345, allocations: 268.4 kB / 0.5102 GB, free: 36.2 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001327/0.3347, allocations: 95.44 kB / 0.5102 GB, free: 36.14 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001736/0.3364, allocations: 1.107 MB / 0.5113 GB, free: 35.62 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.628e-06/0.3364, allocations: 16.12 kB / 0.5113 GB, free: 35.62 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.977e-06/0.3365, allocations: 1.031 kB / 0.5113 GB, free: 35.62 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.458e-06/0.3365, allocations: 4.406 kB / 0.5114 GB, free: 35.62 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003274/0.3397, allocations: 3.144 MB / 0.5144 GB, free: 33.36 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.706e-06/0.3398, allocations: 5.562 kB / 0.5144 GB, free: 33.36 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006816/0.3405, allocations: 175.5 kB / 0.5146 GB, free: 33.35 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001982/0.3407, allocations: 72.69 kB / 0.5147 GB, free: 33.32 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.065e-05/0.3407, allocations: 25.88 kB / 0.5147 GB, free: 33.3 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00123/0.342, allocations: 2.629 MB / 0.5173 GB, free: 30.65 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.311e-06/0.342, allocations: 7.594 kB / 0.5173 GB, free: 30.65 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001852/0.3438, allocations: 1.475 MB / 0.5187 GB, free: 29.75 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001633/0.344, allocations: 198.2 kB / 0.5189 GB, free: 29.58 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001244/0.3441, allocations: 30.03 kB / 0.5189 GB, free: 29.56 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005987/0.3447, allocations: 58.69 kB / 0.519 GB, free: 29.54 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001305/0.3449, allocations: 82.78 kB / 0.5191 GB, free: 29.52 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.459e-05/0.3449, allocations: 34.66 kB / 0.5191 GB, free: 29.51 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006433/0.3456, allocations: 0.5784 MB / 0.5197 GB, free: 29.24 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3456, allocations: 0 / 0.5197 GB, free: 29.24 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009424/0.3465, allocations: 307.9 kB / 0.5199 GB, free: 29.18 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * Number of states: 1 (currentSource.pin_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 (93): * Single equations (assignments): 91 * 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,1,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.00226/0.3488, allocations: 2.086 MB / 0.522 GB, free: 27.71 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001683/0.3505, allocations: 1.082 MB / 0.523 GB, free: 27.18 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.3505, allocations: 1.406 kB / 0.523 GB, free: 27.18 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000795/0.3513, allocations: 0.6211 MB / 0.5236 GB, free: 26.81 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007598/0.3521, allocations: 125.2 kB / 0.5238 GB, free: 26.76 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.011/0.3631, allocations: 9.542 MB / 0.5331 GB, free: 20.57 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005145/0.3637, allocations: 1.011 MB / 0.5341 GB, free: 19.85 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007012/0.3644, allocations: 158 kB / 0.5342 GB, free: 19.79 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004446/0.3648, allocations: 381.8 kB / 0.5346 GB, free: 19.52 MB / 382.1 MB Notification: Performance of SimCode: time 4.11e-07/0.3648, allocations: 0 / 0.5346 GB, free: 19.52 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02594/0.3908, allocations: 18.72 MB / 0.5529 GB, free: 4.934 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001269/0.3909, allocations: 239.7 kB / 0.5531 GB, free: 4.684 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.29/2.681, allocations: 4 kB / 0.5531 GB, free: 4.68 MB / 382.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Electrical_QuasiStatic_SinglePhase_SerialConnection_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Electrical_QuasiStatic_SinglePhase_SerialConnection.fmu > ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Electrical/QuasiStatic/SinglePhase/SerialConnection/SerialConnection.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches