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/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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001062/0.001062, allocations: 202.7 kB / 8.539 MB, free: 1.719 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.171/1.171, allocations: 225.5 MB / 234.4 MB, free: 3.32 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008877/0.0008878, allocations: 88.64 kB / 286.3 MB, free: 5.297 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1717/0.1717, allocations: 45.14 MB / 383.3 MB, free: 0.543 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2038/0.3755, allocations: 69.37 MB / 452.7 MB, free: 76.11 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0928/0.4684, allocations: 63.24 MB / 0.5039 GB, free: 12.94 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2737/0.7421, allocations: 100.6 MB / 0.6021 GB, free: 2.348 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002409/0.7424, allocations: 82.84 kB / 0.6022 GB, free: 2.305 MB / 394.7 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.08959/0.832, allocations: 38.08 MB / 0.6393 GB, free: 3.562 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.595e-05/0.832, allocations: 8 kB / 0.6393 GB, free: 3.555 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00695/0.839, allocations: 1.023 MB / 0.6403 GB, free: 2.637 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001201/0.8402, allocations: 0.5605 MB / 0.6409 GB, free: 2.168 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.788e-05/0.8403, allocations: 52 kB / 0.6409 GB, free: 2.117 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000268/0.8406, allocations: 79.91 kB / 0.641 GB, free: 2.039 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002404/0.843, allocations: 1.323 MB / 0.6423 GB, free: 1.176 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001733/0.8447, allocations: 0.9239 MB / 0.6432 GB, free: 0.5195 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.185e-05/0.8448, allocations: 4 kB / 0.6432 GB, free: 0.5156 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.629e-05/0.8449, allocations: 0 / 0.6432 GB, free: 0.5156 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.099e-05/0.8449, allocations: 35.91 kB / 0.6432 GB, free: 492 kB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009167/0.8541, allocations: 5.679 MB / 0.6488 GB, free: 10.59 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001299/0.8554, allocations: 0.6835 MB / 0.6495 GB, free: 9.895 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004968/0.8559, allocations: 319.6 kB / 0.6498 GB, free: 9.582 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000189/0.8561, allocations: 183 kB / 0.6499 GB, free: 9.363 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.495e-05/0.8562, allocations: 47.25 kB / 0.65 GB, free: 9.309 MB / 442.7 MB Notification: Performance of pre-optimization done (n=90): time 2.836e-06/0.8562, allocations: 0 / 0.65 GB, free: 9.309 MB / 442.7 MB Notification: Performance of matching and sorting (n=90): time 0.001586/0.8578, allocations: 0.6637 MB / 0.6506 GB, free: 8.633 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.329e-05/0.8578, allocations: 60.19 kB / 0.6507 GB, free: 8.562 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005577/0.8584, allocations: 428.8 kB / 0.6511 GB, free: 8.137 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 5.528e-05/0.8585, allocations: 29.7 kB / 0.6511 GB, free: 8.102 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002853/0.8588, allocations: 0.5055 MB / 0.6516 GB, free: 7.586 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002205/0.859, allocations: 291.7 kB / 0.6519 GB, free: 7.297 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.664e-05/0.859, allocations: 0 / 0.6519 GB, free: 7.297 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001775/0.8592, allocations: 374.6 kB / 0.6523 GB, free: 6.922 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005262/0.8598, allocations: 294.6 kB / 0.6525 GB, free: 6.633 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006978/0.8605, allocations: 0.5539 MB / 0.6531 GB, free: 5.965 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001098/0.8616, allocations: 422.8 kB / 0.6535 GB, free: 5.551 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.065e-06/0.8616, allocations: 4 kB / 0.6535 GB, free: 5.547 MB / 442.7 MB Notification: Performance of matching and sorting (n=143) (initialization): time 0.002232/0.8638, allocations: 1.036 MB / 0.6545 GB, free: 4.5 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.496e-05/0.8639, allocations: 4 kB / 0.6545 GB, free: 4.496 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.598e-05/0.8639, allocations: 12.06 kB / 0.6545 GB, free: 4.484 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002849/0.8642, allocations: 69.67 kB / 0.6546 GB, free: 4.41 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001159/0.8653, allocations: 275.5 kB / 0.6548 GB, free: 4.141 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002058/0.8674, allocations: 2.519 MB / 0.6573 GB, free: 1.398 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008157/0.8682, allocations: 90.81 kB / 0.6574 GB, free: 1.309 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001053/0.8684, allocations: 47.98 kB / 0.6574 GB, free: 1.262 MB / 442.7 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001937/0.8686, allocations: 136.6 kB / 0.6576 GB, free: 1.121 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001373/0.8687, allocations: 67.22 kB / 0.6576 GB, free: 1.055 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00193/0.8706, allocations: 1.008 MB / 0.6586 GB, free: 16 kB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.498e-06/0.8707, allocations: 8 kB / 0.6586 GB, free: 8 kB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.8707, allocations: 0 / 0.6586 GB, free: 8 kB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.809e-06/0.8707, allocations: 3.984 kB / 0.6586 GB, free: 4 kB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004034/0.8747, allocations: 3.306 MB / 0.6619 GB, free: 12.27 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.097e-06/0.8748, allocations: 11.91 kB / 0.6619 GB, free: 12.26 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008659/0.8756, allocations: 199.7 kB / 0.6621 GB, free: 12.07 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002304/0.8759, allocations: 62.03 kB / 0.6621 GB, free: 12 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.013e-05/0.8759, allocations: 15.98 kB / 0.6621 GB, free: 11.98 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001909/0.8779, allocations: 2.509 MB / 0.6646 GB, free: 9.246 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.287e-06/0.8779, allocations: 8 kB / 0.6646 GB, free: 9.238 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00241/0.8803, allocations: 1.737 MB / 0.6663 GB, free: 7.203 MB / 458.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002904/0.8832, allocations: 2.471 MB / 0.6687 GB, free: 4.43 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002118/0.8834, allocations: 180.1 kB / 0.6689 GB, free: 4.234 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001167/0.8836, allocations: 12 kB / 0.6689 GB, free: 4.223 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006501/0.8842, allocations: 44.03 kB / 0.6689 GB, free: 4.18 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001206/0.8844, allocations: 80.33 kB / 0.669 GB, free: 4.098 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.529e-05/0.8844, allocations: 32 kB / 0.669 GB, free: 4.066 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.0004065/0.8848, allocations: 327.2 kB / 0.6693 GB, free: 3.746 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001648/0.8865, allocations: 330.8 kB / 0.6697 GB, free: 3.422 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 31 * Number of states: 1 (currentRMSSensor.pin_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002786/0.8868, allocations: 178.7 kB / 0.6698 GB, free: 3.234 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.001543/0.8883, allocations: 0.9622 MB / 0.6708 GB, free: 2.258 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 5.821e-06/0.8884, allocations: 4 kB / 0.6708 GB, free: 2.254 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008003/0.8892, allocations: 0.5712 MB / 0.6713 GB, free: 1.664 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004485/0.8896, allocations: 65.88 kB / 0.6714 GB, free: 1.602 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002966/0.8926, allocations: 1.378 MB / 0.6727 GB, free: 100 kB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001023/0.8936, allocations: 1.116 MB / 0.6738 GB, free: 14.95 MB / 474.7 MB Notification: Performance of SimCode: time 1.263e-06/0.8936, allocations: 0 / 0.6738 GB, free: 14.95 MB / 474.7 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/linux/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) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection_res.mat does not exist to compare? outputFormat=mat