Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.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.DifferenceAmplifier,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_DifferenceAmplifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.DifferenceAmplifier,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_DifferenceAmplifier",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.001053/0.001053, allocations: 181 kB / 17.01 MB, free: 5.125 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.257/1.257, allocations: 205.4 MB / 223.1 MB, free: 9.133 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.00077/0.0007699, allocations: 95.06 kB / 271.5 MB, free: 8.375 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002615/0.0002616, allocations: 8 kB / 328.3 MB, free: 15.45 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.228/0.2283, allocations: 47.57 MB / 375.9 MB, free: 45.52 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1019/0.3302, allocations: 80.16 MB / 456.1 MB, free: 388 kB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002291/0.3305, allocations: 67.97 kB / 456.1 MB, free: 320 kB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04096/0.3715, allocations: 14.31 MB / 470.5 MB, free: 1.941 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.938e-06/0.3716, allocations: 0 / 470.5 MB, free: 1.941 MB / 346.7 MB Notification: Performance of Transformations before backend: time 7.55e-05/0.3717, allocations: 24 kB / 470.5 MB, free: 1.918 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 203 * Number of variables: 203 Notification: Performance of Generate backend data structure: time 0.00321/0.3749, allocations: 1.13 MB / 471.6 MB, free: 0.7344 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.126e-05/0.3749, allocations: 8.031 kB / 471.6 MB, free: 0.7266 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003877/0.3753, allocations: 131 kB / 471.7 MB, free: 0.5898 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003648/0.3757, allocations: 106.7 kB / 471.8 MB, free: 496 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001022/0.3767, allocations: 0.4886 MB / 472.3 MB, free: 15.95 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.454e-05/0.3768, allocations: 66 kB / 472.4 MB, free: 15.89 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002033/0.377, allocations: 79.91 kB / 472.5 MB, free: 15.81 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001877/0.3789, allocations: 0.8883 MB / 473.4 MB, free: 14.91 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.153e-05/0.379, allocations: 0 / 473.4 MB, free: 14.91 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.846e-05/0.3791, allocations: 32 kB / 473.4 MB, free: 14.88 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.301e-05/0.3791, allocations: 20 kB / 473.4 MB, free: 14.86 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001754/0.3808, allocations: 0.8004 MB / 474.2 MB, free: 14.05 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005681/0.3865, allocations: 3.104 MB / 477.3 MB, free: 10.83 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001262/0.3878, allocations: 0.6669 MB / 478 MB, free: 10.16 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.725e-05/0.388, allocations: 12.5 kB / 478 MB, free: 10.14 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.84e-05/0.388, allocations: 51.09 kB / 478 MB, free: 10.09 MB / 362.7 MB Notification: Performance of pre-optimization done (n=67): time 2.825e-06/0.388, allocations: 0 / 478 MB, free: 10.09 MB / 362.7 MB Notification: Performance of matching and sorting (n=71): time 0.005326/0.3933, allocations: 2.351 MB / 480.4 MB, free: 7.664 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.44e-05/0.3934, allocations: 60.06 kB / 480.5 MB, free: 7.594 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006921/0.3941, allocations: 450.1 kB / 480.9 MB, free: 7.148 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.895e-05/0.3942, allocations: 45.64 kB / 480.9 MB, free: 7.098 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002827/0.3945, allocations: 395.5 kB / 481.3 MB, free: 6.703 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002076/0.3947, allocations: 256.3 kB / 481.6 MB, free: 6.449 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.978e-05/0.3948, allocations: 16 kB / 481.6 MB, free: 6.434 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001908/0.395, allocations: 378.8 kB / 482 MB, free: 6.055 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000605/0.3956, allocations: 321.8 kB / 482.3 MB, free: 5.742 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006995/0.3963, allocations: 433.1 kB / 482.7 MB, free: 5.281 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006741/0.397, allocations: 362.9 kB / 483.1 MB, free: 4.93 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.208e-06/0.397, allocations: 7.953 kB / 483.1 MB, free: 4.922 MB / 362.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002037/0.399, allocations: 1.056 MB / 484.1 MB, free: 3.855 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.577e-05/0.3991, allocations: 15.23 kB / 484.1 MB, free: 3.844 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.112e-05/0.3991, allocations: 4 kB / 484.1 MB, free: 3.84 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005705/0.3997, allocations: 184.7 kB / 484.3 MB, free: 3.656 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008315/0.4005, allocations: 187.8 kB / 484.5 MB, free: 3.473 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003689/0.4042, allocations: 2.657 MB / 487.2 MB, free: 0.6797 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006541/0.4049, allocations: 36.05 kB / 487.2 MB, free: 0.6445 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.732e-05/0.405, allocations: 31.98 kB / 487.2 MB, free: 0.6133 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (84): * Single equations (assignments): 83 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(5,60.0%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004257/0.4054, allocations: 225.8 kB / 487.4 MB, free: 392 kB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001177/0.4055, allocations: 67.25 kB / 487.5 MB, free: 324 kB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001812/0.4057, allocations: 86.17 kB / 487.6 MB, free: 236 kB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.233e-06/0.4057, allocations: 8 kB / 487.6 MB, free: 228 kB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.152e-05/0.4057, allocations: 0 / 487.6 MB, free: 228 kB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.652e-06/0.4058, allocations: 7.984 kB / 487.6 MB, free: 220 kB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001026/0.4068, allocations: 0.8377 MB / 488.4 MB, free: 15.33 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.473e-06/0.4068, allocations: 7.969 kB / 488.5 MB, free: 15.32 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007214/0.4075, allocations: 159.8 kB / 488.6 MB, free: 15.16 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005187/0.4081, allocations: 172.7 kB / 488.8 MB, free: 14.99 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.369e-05/0.4081, allocations: 27.97 kB / 488.8 MB, free: 14.96 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003448/0.4116, allocations: 2.658 MB / 491.5 MB, free: 12.18 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.4116, allocations: 0 / 491.5 MB, free: 12.18 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002521/0.4142, allocations: 1.412 MB / 492.9 MB, free: 10.75 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001888/0.4144, allocations: 140.2 kB / 493 MB, free: 10.59 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.653e-05/0.4145, allocations: 16 kB / 493 MB, free: 10.57 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005669/0.415, allocations: 63.95 kB / 493.1 MB, free: 10.51 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001236/0.4152, allocations: 52.58 kB / 493.1 MB, free: 10.46 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.247e-05/0.4152, allocations: 27.94 kB / 493.2 MB, free: 10.43 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000406/0.4156, allocations: 350.9 kB / 493.5 MB, free: 10.09 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4156, allocations: 0 / 493.5 MB, free: 10.09 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008118/0.4165, allocations: 240.1 kB / 493.8 MB, free: 9.855 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 9 (C1.v,C4.v,C5.v,C2.v,C3.v,Transistor1.ct.v,Transistor1.Tr.C.v,Transistor2.ct.v,Transistor2.Tr.C.v) * 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 (56): * Single equations (assignments): 55 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(5,68.0%) 11} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002686/0.4192, allocations: 2 MB / 495.7 MB, free: 7.824 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002103/0.4213, allocations: 1.022 MB / 496.8 MB, free: 6.793 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.597e-06/0.4213, allocations: 0.6875 kB / 496.8 MB, free: 6.793 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001271/0.4226, allocations: 0.6507 MB / 497.4 MB, free: 6.129 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006701/0.4233, allocations: 118.2 kB / 497.5 MB, free: 6.016 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1779/0.6012, allocations: 6.848 MB / 0.4926 GB, free: 105.2 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005747/0.6018, allocations: 0.974 MB / 0.4935 GB, free: 104.5 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0005707/0.6024, allocations: 80.38 kB / 0.4936 GB, free: 104.5 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003867/0.6028, allocations: 292.9 kB / 0.4939 GB, free: 104.5 MB / 378.7 MB Notification: Performance of SimCode: time 1.042e-06/0.6028, allocations: 1.031 kB / 0.4939 GB, free: 104.5 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03349/0.6363, allocations: 15.83 MB / 0.5093 GB, free: 101.1 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001847/0.6366, allocations: 214.4 kB / 0.5095 GB, free: 100.9 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.485/3.121, allocations: 0 / 0.5095 GB, free: 100.9 MB / 378.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_DifferenceAmplifier_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_DifferenceAmplifier.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe 2>&1)