Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_Modelica_Electrical_Analog_Examples_DifferenceAmplifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.DifferenceAmplifier,fileNamePrefix="Modelica_3_2_3_cpp_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.0009392/0.0009389, allocations: 175.1 kB / 16.72 MB, free: 5.059 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.312/1.312, allocations: 205.4 MB / 222.9 MB, free: 9.027 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.000725/0.0007249, allocations: 98.33 kB / 271.2 MB, free: 8.242 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002607/0.0002608, allocations: 12 kB / 327.6 MB, free: 15.8 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2137/0.214, allocations: 47.58 MB / 375.2 MB, free: 45.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.003614/0.2176, allocations: 4.954 MB / 380.1 MB, free: 41.52 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002093/0.2197, allocations: 1.398 MB / 381.5 MB, free: 40.34 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003558/0.2201, allocations: 18.53 kB / 381.6 MB, free: 40.34 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000184/0.2203, allocations: 113.9 kB / 381.7 MB, free: 40.24 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003736/0.2207, allocations: 235.8 kB / 381.9 MB, free: 40.04 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004551/0.2212, allocations: 228.1 kB / 382.1 MB, free: 39.85 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008119/0.222, allocations: 1.125 MB / 383.2 MB, free: 39.16 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004013/0.2224, allocations: 358.8 kB / 383.6 MB, free: 38.94 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000375/0.2228, allocations: 365.6 kB / 384 MB, free: 38.76 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004007/0.2232, allocations: 446 kB / 384.4 MB, free: 38.46 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001148/0.2233, allocations: 55.66 kB / 384.4 MB, free: 38.46 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002574/0.2236, allocations: 83.06 kB / 384.5 MB, free: 38.45 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001256/0.2237, allocations: 178.7 kB / 384.7 MB, free: 38.3 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003761/0.2241, allocations: 472.9 kB / 385.2 MB, free: 37.99 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006659/0.2248, allocations: 1.055 MB / 386.2 MB, free: 37.17 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.2248, allocations: 1.094 kB / 386.2 MB, free: 37.17 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.142e-06/0.2248, allocations: 0 / 386.2 MB, free: 37.17 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.144e-05/0.2248, allocations: 4 kB / 386.2 MB, free: 37.16 MB / 298.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.00183/0.2266, allocations: 1.147 MB / 387.4 MB, free: 36.32 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.357e-05/0.2267, allocations: 10 kB / 387.4 MB, free: 36.32 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001204/0.2268, allocations: 133.8 kB / 387.5 MB, free: 36.2 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000136/0.227, allocations: 104.4 kB / 387.6 MB, free: 36.15 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004449/0.2274, allocations: 0.5033 MB / 388.1 MB, free: 35.61 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.315e-05/0.2275, allocations: 58.38 kB / 388.2 MB, free: 35.55 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.772e-05/0.2276, allocations: 88.27 kB / 388.3 MB, free: 35.47 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001227/0.2288, allocations: 0.8923 MB / 389.2 MB, free: 34.56 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.676e-05/0.2288, allocations: 0 / 389.2 MB, free: 34.56 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.352e-05/0.2289, allocations: 32 kB / 389.2 MB, free: 34.53 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.153e-05/0.2289, allocations: 20 kB / 389.2 MB, free: 34.51 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001233/0.2301, allocations: 0.8043 MB / 390 MB, free: 33.71 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003668/0.2338, allocations: 3.099 MB / 393.1 MB, free: 30.49 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008496/0.2347, allocations: 0.6548 MB / 393.8 MB, free: 29.83 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005411/0.2352, allocations: 426.3 kB / 394.2 MB, free: 29.41 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.11e-05/0.2353, allocations: 16.55 kB / 394.2 MB, free: 29.39 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.142e-05/0.2353, allocations: 43.11 kB / 394.2 MB, free: 29.34 MB / 298.7 MB Notification: Performance of pre-optimization done (n=67): time 2.344e-06/0.2353, allocations: 0 / 394.2 MB, free: 29.34 MB / 298.7 MB Notification: Performance of matching and sorting (n=71): time 0.003556/0.2389, allocations: 2.248 MB / 396.5 MB, free: 27.05 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.028e-05/0.2389, allocations: 60.06 kB / 396.5 MB, free: 26.98 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000394/0.2393, allocations: 0.5028 MB / 397 MB, free: 26.46 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.065e-05/0.2394, allocations: 37.7 kB / 397.1 MB, free: 26.42 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001465/0.2395, allocations: 391.5 kB / 397.5 MB, free: 26.03 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001078/0.2396, allocations: 248.4 kB / 397.7 MB, free: 25.79 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.824e-05/0.2397, allocations: 16 kB / 397.7 MB, free: 25.77 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.356e-05/0.2398, allocations: 378.8 kB / 398.1 MB, free: 25.39 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000506/0.2403, allocations: 321.9 kB / 398.4 MB, free: 25.07 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005344/0.2408, allocations: 437.1 kB / 398.8 MB, free: 24.61 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001063/0.2419, allocations: 0.7663 MB / 399.6 MB, free: 23.82 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.2419, allocations: 4 kB / 399.6 MB, free: 23.81 MB / 298.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.001616/0.2435, allocations: 1.064 MB / 400.7 MB, free: 22.73 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.538e-05/0.2435, allocations: 8 kB / 400.7 MB, free: 22.73 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.422e-06/0.2436, allocations: 0 / 400.7 MB, free: 22.73 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004556/0.244, allocations: 184.6 kB / 400.9 MB, free: 22.54 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007078/0.2447, allocations: 195.8 kB / 401 MB, free: 22.35 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002756/0.2475, allocations: 2.596 MB / 403.6 MB, free: 19.62 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005677/0.2481, allocations: 43.92 kB / 403.7 MB, free: 19.58 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.089e-05/0.2482, allocations: 35.98 kB / 403.7 MB, free: 19.55 MB / 298.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.0002681/0.2484, allocations: 217.7 kB / 403.9 MB, free: 19.32 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.773e-05/0.2485, allocations: 71.16 kB / 404 MB, free: 19.25 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001453/0.2487, allocations: 82.17 kB / 404.1 MB, free: 19.17 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.328e-06/0.2487, allocations: 8 kB / 404.1 MB, free: 19.16 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.106e-05/0.2487, allocations: 8 kB / 404.1 MB, free: 19.16 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.013e-06/0.2487, allocations: 7.922 kB / 404.1 MB, free: 19.15 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007434/0.2495, allocations: 0.8378 MB / 404.9 MB, free: 18.26 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.715e-06/0.2495, allocations: 0 / 404.9 MB, free: 18.26 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006347/0.2501, allocations: 147.8 kB / 405.1 MB, free: 18.11 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004437/0.2506, allocations: 196.6 kB / 405.3 MB, free: 17.92 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.668e-05/0.2506, allocations: 23.98 kB / 405.3 MB, free: 17.89 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00261/0.2532, allocations: 2.611 MB / 407.9 MB, free: 15.15 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.2533, allocations: 0 / 407.9 MB, free: 15.15 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002003/0.2553, allocations: 1.408 MB / 409.3 MB, free: 13.72 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001034/0.2554, allocations: 144.3 kB / 409.5 MB, free: 13.56 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001038/0.2555, allocations: 23.92 kB / 409.5 MB, free: 13.54 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005172/0.256, allocations: 55.97 kB / 409.5 MB, free: 13.48 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001202/0.2561, allocations: 52.58 kB / 409.6 MB, free: 13.43 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.393e-05/0.2562, allocations: 23.98 kB / 409.6 MB, free: 13.41 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000287/0.2565, allocations: 354.8 kB / 410 MB, free: 13.07 MB / 298.7 MB Notification: Performance of sort global known variables: time 1e-07/0.2565, allocations: 0 / 410 MB, free: 13.07 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006383/0.2571, allocations: 220 kB / 410.2 MB, free: 12.85 MB / 298.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.002224/0.2594, allocations: 1.999 MB / 412.2 MB, free: 10.82 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001765/0.2611, allocations: 1.018 MB / 413.2 MB, free: 9.797 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.2612, allocations: 0 / 413.2 MB, free: 9.797 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001086/0.2623, allocations: 0.6393 MB / 413.8 MB, free: 9.145 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006848/0.263, allocations: 130.5 kB / 414 MB, free: 9.016 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006064/0.269, allocations: 5.245 MB / 419.2 MB, free: 3.664 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003351/0.2694, allocations: 0.9577 MB / 420.2 MB, free: 2.68 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003776/0.2698, allocations: 299.3 kB / 420.5 MB, free: 2.387 MB / 298.7 MB Notification: Performance of SimCode: time 7.62e-07/0.2698, allocations: 0 / 420.5 MB, free: 2.387 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.656/3.926, allocations: 15.5 MB / 436 MB, free: 2.859 MB / 314.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.DifferenceAmplifier_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_DifferenceAmplifier_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_DifferenceAmplifier.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe 2>&1)