Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CauerLowPassSC.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CauerLowPassSC,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_CauerLowPassSC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CauerLowPassSC,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_CauerLowPassSC",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00227/0.002269, allocations: 181.4 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.163/2.163, allocations: 205.2 MB / 219.4 MB, free: 14.21 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001095/0.001095, allocations: 82.7 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.969e-05/3.988e-05, allocations: 0 / 321.6 MB, free: 17.76 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1022/0.1023, allocations: 47.57 MB / 369.2 MB, free: 2.117 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4924/0.5948, allocations: 81.33 MB / 450.5 MB, free: 11.92 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002778/0.5952, allocations: 72.17 kB / 450.6 MB, free: 11.89 MB / 330.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Electrical/Analog/Examples/Utilities/SwitchedCapacitor.mo:41:3-41:79:writable] Warning: connect(p, p) connects the same connector instance! The connect equation will be ignored. Notification: Performance of FrontEnd - DAE generated: time 0.2208/0.8159, allocations: 40.59 MB / 491.2 MB, free: 5.043 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.316e-06/0.816, allocations: 0 / 491.2 MB, free: 5.043 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0002671/0.8163, allocations: 59.98 kB / 491.2 MB, free: 4.984 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 658 * Number of variables: 658 Notification: Performance of Generate backend data structure: time 0.01459/0.8309, allocations: 2.538 MB / 493.8 MB, free: 2.367 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.499e-05/0.831, allocations: 8.031 kB / 493.8 MB, free: 2.359 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001818/0.8328, allocations: 354.8 kB / 494.1 MB, free: 2.004 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002045/0.835, allocations: 288.5 kB / 494.4 MB, free: 1.719 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005732/0.8407, allocations: 1.02 MB / 495.4 MB, free: 0.6523 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005028/0.8413, allocations: 205.1 kB / 495.6 MB, free: 460 kB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001462/0.8428, allocations: 267.8 kB / 495.9 MB, free: 192 kB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01325/0.8561, allocations: 2.56 MB / 498.4 MB, free: 13.49 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001722/0.8564, allocations: 7.938 kB / 498.5 MB, free: 13.48 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001005/0.8574, allocations: 108 kB / 498.6 MB, free: 13.38 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001106/0.8575, allocations: 64 kB / 498.6 MB, free: 13.31 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01063/0.8682, allocations: 1.878 MB / 0.4888 GB, free: 11.42 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03708/0.9053, allocations: 9.669 MB / 0.4982 GB, free: 1.535 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01516/0.9205, allocations: 2.804 MB / 0.501 GB, free: 14.72 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00434/0.925, allocations: 1.051 MB / 0.502 GB, free: 13.67 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003781/0.9254, allocations: 25.98 kB / 0.502 GB, free: 13.64 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004399/0.9298, allocations: 0.9372 MB / 0.5029 GB, free: 12.7 MB / 394.7 MB Notification: Performance of pre-optimization done (n=218): time 1.026e-05/0.9299, allocations: 0 / 0.5029 GB, free: 12.7 MB / 394.7 MB Notification: Performance of matching and sorting (n=218): time 0.0133/0.9432, allocations: 2.488 MB / 0.5053 GB, free: 10.16 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001345/0.9434, allocations: 81.41 kB / 0.5054 GB, free: 10.07 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003511/0.9469, allocations: 1.02 MB / 0.5064 GB, free: 9.031 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006201/0.9476, allocations: 69.7 kB / 0.5065 GB, free: 8.957 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00146/0.9491, allocations: 0.9074 MB / 0.5074 GB, free: 8.039 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00167/0.9508, allocations: 0.6933 MB / 0.5081 GB, free: 7.336 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003288/0.9512, allocations: 48 kB / 0.5081 GB, free: 7.289 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0004016/0.9516, allocations: 403.9 kB / 0.5085 GB, free: 6.887 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003379/0.955, allocations: 0.6729 MB / 0.5091 GB, free: 6.211 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004537/0.9596, allocations: 1.232 MB / 0.5103 GB, free: 4.742 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00379/0.9635, allocations: 0.7632 MB / 0.5111 GB, free: 3.977 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.887e-05/0.9636, allocations: 4 kB / 0.5111 GB, free: 3.973 MB / 394.7 MB Notification: Performance of matching and sorting (n=318) (initialization): time 0.01479/0.9784, allocations: 2.927 MB / 0.514 GB, free: 1 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.899e-05/0.9785, allocations: 15.98 kB / 0.514 GB, free: 0.9844 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.771e-05/0.9786, allocations: 19.98 kB / 0.514 GB, free: 0.9648 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008456/0.9871, allocations: 1.18 MB / 0.5151 GB, free: 15.75 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002636/0.9898, allocations: 287.5 kB / 0.5154 GB, free: 15.46 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.396/1.386, allocations: 22.26 MB / 0.5371 GB, free: 100.9 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003356/1.389, allocations: 346 kB / 0.5375 GB, free: 100.9 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005555/1.39, allocations: 94.75 kB / 0.5376 GB, free: 100.9 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 74 * Number of states: 0 () * Number of discrete variables: 66 ($whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.R4.BooleanPulse.pulseStart,R4.BooleanPulse.pulseStart,R4.IdealCommutingSwitch1.control,R4.logicalSwitch.u1,$PRE.R5.BooleanPulse.pulseStart,R5.BooleanPulse.pulseStart,R5.IdealCommutingSwitch1.control,R5.logicalSwitch.u1,$PRE.R8.BooleanPulse.pulseStart,R8.BooleanPulse.pulseStart,R8.IdealCommutingSwitch1.control,R8.logicalSwitch.u1,$PRE.R9.BooleanPulse.pulseStart,R9.BooleanPulse.pulseStart,R9.IdealCommutingSwitch1.control,R9.logicalSwitch.u1,$PRE.R1.BooleanPulse.pulseStart,R1.BooleanPulse.pulseStart,R1.IdealCommutingSwitch1.control,R1.logicalSwitch.u1,$PRE.R2.BooleanPulse.pulseStart,R2.BooleanPulse.pulseStart,R2.IdealCommutingSwitch1.control,R2.logicalSwitch.u1,$PRE.R3.BooleanPulse.pulseStart,R3.BooleanPulse.pulseStart,R3.IdealCommutingSwitch1.control,R3.logicalSwitch.u1,$PRE.Rp1.BooleanPulse.pulseStart,Rp1.BooleanPulse.pulseStart,Rp1.IdealCommutingSwitch1.control,Rp1.logicalSwitch.u1,$PRE.R7.BooleanPulse.pulseStart,R7.BooleanPulse.pulseStart,R7.IdealCommutingSwitch1.control,R7.logicalSwitch.u1,$PRE.R10.BooleanPulse.pulseStart,R10.BooleanPulse.pulseStart,R10.IdealCommutingSwitch1.control,R10.logicalSwitch.u1,$PRE.R11.BooleanPulse.pulseStart,R11.BooleanPulse.pulseStart,R11.IdealCommutingSwitch1.control,R11.logicalSwitch.u1,R11.lessEqualThreshold.y,R10.lessEqualThreshold.y,R7.lessEqualThreshold.y,Rp1.lessEqualThreshold.y,R3.lessEqualThreshold.y,R2.lessEqualThreshold.y,R1.lessEqualThreshold.y,R9.lessEqualThreshold.y,R8.lessEqualThreshold.y,R5.lessEqualThreshold.y,R4.lessEqualThreshold.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (199): * Single equations (assignments): 187 * 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: 12 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 12 {(4,62.5%) 7,(4,62.5%) 7,(4,62.5%) 7,(4,62.5%) 7,(1,100.0%) 9,(4,62.5%) 7,(4,62.5%) 7,(4,62.5%) 7,(4,62.5%) 7,(4,62.5%) 7,(4,62.5%) 7,(4,62.5%) 7} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006822/1.391, allocations: 271 kB / 0.5378 GB, free: 100.8 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006509/1.391, allocations: 183.7 kB / 0.538 GB, free: 100.8 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000646/1.392, allocations: 222.6 kB / 0.5382 GB, free: 100.8 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.049e-05/1.392, allocations: 23.59 kB / 0.5382 GB, free: 100.8 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.75e-05/1.392, allocations: 17.44 kB / 0.5383 GB, free: 100.8 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.995e-05/1.392, allocations: 10.98 kB / 0.5383 GB, free: 100.8 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005341/1.397, allocations: 2.092 MB / 0.5403 GB, free: 100.6 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.748e-05/1.397, allocations: 3.719 kB / 0.5403 GB, free: 100.6 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001603/1.399, allocations: 140.3 kB / 0.5404 GB, free: 100.6 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00608/1.405, allocations: 1.153 MB / 0.5416 GB, free: 100.5 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004681/1.406, allocations: 46.92 kB / 0.5416 GB, free: 100.5 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03237/1.438, allocations: 22.24 MB / 0.5633 GB, free: 85.15 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.987e-06/1.438, allocations: 0.5156 kB / 0.5633 GB, free: 85.15 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01216/1.45, allocations: 3.573 MB / 0.5668 GB, free: 83.62 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001573/1.452, allocations: 475.8 kB / 0.5673 GB, free: 83.31 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005236/1.453, allocations: 41.58 kB / 0.5673 GB, free: 83.28 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002219/1.455, allocations: 131.9 kB / 0.5674 GB, free: 83.25 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001194/1.456, allocations: 272.3 kB / 0.5677 GB, free: 83.2 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002219/1.456, allocations: 52.12 kB / 0.5678 GB, free: 83.18 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001484/1.458, allocations: 0.7238 MB / 0.5685 GB, free: 82.87 MB / 410.7 MB Notification: Performance of sort global known variables: time 8.02e-07/1.458, allocations: 0 / 0.5685 GB, free: 82.87 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004084/1.462, allocations: 0.7943 MB / 0.5692 GB, free: 82.73 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 16 (C1.v,C2.v,C3.v,C4.v,C7.v,R4.Capacitor.v,R5.Capacitor.v,R8.Capacitor.v,R9.Capacitor.v,R1.Capacitor.v,R2.Capacitor.v,R3.Capacitor.v,Rp1.Capacitor.v,R7.Capacitor.v,R10.Capacitor.v,R11.Capacitor.v) * Number of discrete variables: 44 ($whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,R4.BooleanPulse.pulseStart,R4.IdealCommutingSwitch1.control,R4.logicalSwitch.u1,R5.BooleanPulse.pulseStart,R5.IdealCommutingSwitch1.control,R5.logicalSwitch.u1,R8.BooleanPulse.pulseStart,R8.IdealCommutingSwitch1.control,R8.logicalSwitch.u1,R9.BooleanPulse.pulseStart,R9.IdealCommutingSwitch1.control,R9.logicalSwitch.u1,R1.BooleanPulse.pulseStart,R1.IdealCommutingSwitch1.control,R1.logicalSwitch.u1,R2.BooleanPulse.pulseStart,R2.IdealCommutingSwitch1.control,R2.logicalSwitch.u1,R3.BooleanPulse.pulseStart,R3.IdealCommutingSwitch1.control,R3.logicalSwitch.u1,Rp1.BooleanPulse.pulseStart,Rp1.IdealCommutingSwitch1.control,Rp1.logicalSwitch.u1,R7.BooleanPulse.pulseStart,R7.IdealCommutingSwitch1.control,R7.logicalSwitch.u1,R10.BooleanPulse.pulseStart,R10.IdealCommutingSwitch1.control,R10.logicalSwitch.u1,R11.BooleanPulse.pulseStart,R11.IdealCommutingSwitch1.control,R11.logicalSwitch.u1) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (99): * Single equations (assignments): 76 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 11 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 12 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 12 {(1,100.0%) 9,(4,62.5%) 7,(4,62.5%) 7,(4,62.5%) 7,(4,62.5%) 7,(4,62.5%) 7,(4,62.5%) 7,(4,62.5%) 7,(4,62.5%) 7,(4,62.5%) 7,(4,62.5%) 7,(4,62.5%) 7} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01174/1.474, allocations: 4.206 MB / 0.5733 GB, free: 80.56 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.009356/1.483, allocations: 3.957 MB / 0.5772 GB, free: 78.14 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.182e-05/1.483, allocations: 4.5 kB / 0.5772 GB, free: 78.14 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006741/1.49, allocations: 2.981 MB / 0.5801 GB, free: 76.05 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002847/1.493, allocations: 334.7 kB / 0.5804 GB, free: 75.94 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01298/1.506, allocations: 4.3 MB / 0.5846 GB, free: 73.91 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001453/1.507, allocations: 1.594 MB / 0.5862 GB, free: 73.13 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001463/1.509, allocations: 0.7829 MB / 0.587 GB, free: 72.49 MB / 410.7 MB Notification: Performance of SimCode: time 1.192e-06/1.509, allocations: 4 kB / 0.587 GB, free: 72.48 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.802/6.311, allocations: 136.7 MB / 0.7204 GB, free: 113.7 MB / 426.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CauerLowPassSC.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CauerLowPassSC.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CauerLowPassSC.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CauerLowPassSC.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CauerLowPassSC_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_CauerLowPassSC_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_CauerLowPassSC.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CauerLowPassSC.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CauerLowPassSC_res.mat does not exist to compare? outputFormat=mat