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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001288/0.001288, allocations: 106.6 kB / 17.73 MB, free: 5.348 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001334/0.001334, allocations: 191 kB / 18.66 MB, free: 4.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.595/1.595, allocations: 205.1 MB / 224.5 MB, free: 12.23 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001614/0.001614, allocations: 51.94 kB / 328 MB, free: 3.777 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1294/0.131, allocations: 46.61 MB / 374.7 MB, free: 5.055 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.2462/0.3773, allocations: 5.696 MB / 380.4 MB, free: 9.18 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003313/0.3806, allocations: 1.446 MB / 381.8 MB, free: 9.156 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001284/0.382, allocations: 18.56 kB / 381.8 MB, free: 9.152 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007795/0.3829, allocations: 156 kB / 382 MB, free: 9.066 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001287/0.3842, allocations: 272.4 kB / 382.2 MB, free: 8.926 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00143/0.3856, allocations: 359.3 kB / 382.6 MB, free: 8.91 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002258/0.3879, allocations: 1.24 MB / 383.8 MB, free: 8.535 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006655/0.3886, allocations: 418.7 kB / 384.2 MB, free: 8.344 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001238/0.3898, allocations: 460.8 kB / 384.7 MB, free: 8.125 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00117/0.391, allocations: 0.5264 MB / 385.2 MB, free: 7.859 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003294/0.3913, allocations: 123.5 kB / 385.3 MB, free: 7.859 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005138/0.3919, allocations: 162.3 kB / 385.5 MB, free: 7.848 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002302/0.3921, allocations: 247.6 kB / 385.7 MB, free: 7.68 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000666/0.3928, allocations: 0.5466 MB / 386.3 MB, free: 7.34 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00202/0.3948, allocations: 1.403 MB / 387.7 MB, free: 6.824 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.103e-06/0.3948, allocations: 0 / 387.7 MB, free: 6.824 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.356e-06/0.3948, allocations: 2.297 kB / 387.7 MB, free: 6.824 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.344e-05/0.3949, allocations: 1.188 kB / 387.7 MB, free: 6.824 MB / 318.1 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.003356/0.3983, allocations: 1.289 MB / 389 MB, free: 5.996 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.322e-05/0.3983, allocations: 10.59 kB / 389 MB, free: 5.996 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001718/0.3985, allocations: 130 kB / 389.1 MB, free: 5.906 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002287/0.3987, allocations: 108.6 kB / 389.2 MB, free: 5.852 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000873/0.3996, allocations: 0.5132 MB / 389.7 MB, free: 5.453 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.661e-05/0.3997, allocations: 63.22 kB / 389.8 MB, free: 5.422 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001369/0.3998, allocations: 80.16 kB / 389.9 MB, free: 5.398 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001767/0.4016, allocations: 0.8873 MB / 390.8 MB, free: 5.016 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.082e-05/0.4016, allocations: 0 / 390.8 MB, free: 5.016 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.845e-05/0.4017, allocations: 32.41 kB / 390.8 MB, free: 4.992 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.297e-05/0.4018, allocations: 19.31 kB / 390.8 MB, free: 4.992 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00162/0.4034, allocations: 0.7843 MB / 391.6 MB, free: 4.715 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005388/0.4088, allocations: 3.022 MB / 394.6 MB, free: 2.988 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00118/0.41, allocations: 0.6481 MB / 395.3 MB, free: 2.68 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006918/0.4107, allocations: 409.1 kB / 395.7 MB, free: 2.512 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.109e-05/0.4108, allocations: 14.06 kB / 395.7 MB, free: 2.512 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.045e-05/0.4108, allocations: 47.19 kB / 395.7 MB, free: 2.461 MB / 318.1 MB Notification: Performance of pre-optimization done (n=67): time 2.976e-06/0.4108, allocations: 0 / 395.7 MB, free: 2.461 MB / 318.1 MB Notification: Performance of matching and sorting (n=71): time 0.004873/0.4157, allocations: 2.191 MB / 397.9 MB, free: 1.324 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.875e-05/0.4158, allocations: 58.94 kB / 398 MB, free: 1.262 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007305/0.4165, allocations: 0.5025 MB / 398.5 MB, free: 1.023 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.109e-05/0.4166, allocations: 42.98 kB / 398.5 MB, free: 0.9805 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001976/0.4168, allocations: 388.9 kB / 398.9 MB, free: 0.6719 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001595/0.4169, allocations: 261.4 kB / 399.2 MB, free: 484 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002364/0.4172, allocations: 135.2 kB / 399.3 MB, free: 412 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001039/0.4173, allocations: 378.4 kB / 399.7 MB, free: 60 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007798/0.4181, allocations: 325.8 kB / 400 MB, free: 0 / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008054/0.4189, allocations: 435.7 kB / 400.4 MB, free: 15.75 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001355/0.4203, allocations: 0.7392 MB / 401.1 MB, free: 15.34 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.4203, allocations: 0 / 401.1 MB, free: 15.34 MB / 334.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.00243/0.4227, allocations: 1.036 MB / 402.2 MB, free: 14.88 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.085e-05/0.4228, allocations: 6.438 kB / 402.2 MB, free: 14.88 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.347e-05/0.4228, allocations: 7.828 kB / 402.2 MB, free: 14.88 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006426/0.4234, allocations: 182.9 kB / 402.4 MB, free: 14.82 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000963/0.4244, allocations: 189 kB / 402.6 MB, free: 14.8 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004354/0.4288, allocations: 2.861 MB / 405.4 MB, free: 12.46 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009456/0.4297, allocations: 30.05 kB / 405.4 MB, free: 12.45 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001047/0.4299, allocations: 33.05 kB / 405.5 MB, free: 12.44 MB / 334.1 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(5,11,60.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005644/0.4304, allocations: 224.4 kB / 405.7 MB, free: 12.25 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002328/0.4307, allocations: 70.69 kB / 405.8 MB, free: 12.21 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002129/0.4309, allocations: 87.05 kB / 405.8 MB, free: 12.14 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.151e-05/0.4309, allocations: 10.78 kB / 405.9 MB, free: 12.14 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.362e-05/0.4309, allocations: 2.656 kB / 405.9 MB, free: 12.14 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.876e-06/0.431, allocations: 3.984 kB / 405.9 MB, free: 12.13 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0017/0.4327, allocations: 0.8349 MB / 406.7 MB, free: 11.5 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.328e-06/0.4327, allocations: 5.375 kB / 406.7 MB, free: 11.49 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008658/0.4336, allocations: 143.5 kB / 406.8 MB, free: 11.46 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006991/0.4343, allocations: 196.2 kB / 407 MB, free: 11.35 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001022/0.4344, allocations: 18.98 kB / 407.1 MB, free: 11.34 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004788/0.4392, allocations: 2.844 MB / 409.9 MB, free: 8.973 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/0.4392, allocations: 0 / 409.9 MB, free: 8.973 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003411/0.4426, allocations: 1.39 MB / 411.3 MB, free: 8.164 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004881/0.4432, allocations: 141.8 kB / 411.4 MB, free: 8.023 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002225/0.4434, allocations: 12.5 kB / 411.4 MB, free: 8.016 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006903/0.4441, allocations: 56.55 kB / 411.5 MB, free: 7.988 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001619/0.4443, allocations: 52.09 kB / 411.5 MB, free: 7.957 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.703e-05/0.4443, allocations: 24.02 kB / 411.6 MB, free: 7.949 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0006042/0.445, allocations: 355.8 kB / 411.9 MB, free: 7.738 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.445, allocations: 0 / 411.9 MB, free: 7.738 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001101/0.4461, allocations: 227.7 kB / 412.1 MB, free: 7.707 MB / 334.1 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(5,11,68.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.003458/0.4495, allocations: 1.957 MB / 414.1 MB, free: 6.352 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002754/0.4523, allocations: 1.008 MB / 415.1 MB, free: 5.809 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 6.753e-06/0.4523, allocations: 384 / 415.1 MB, free: 5.809 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001774/0.4541, allocations: 0.6492 MB / 415.8 MB, free: 5.414 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00123/0.4554, allocations: 132.5 kB / 415.9 MB, free: 5.344 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01413/0.4695, allocations: 6.868 MB / 422.8 MB, free: 14.35 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007345/0.4703, allocations: 0.9577 MB / 423.7 MB, free: 13.36 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004903/0.4708, allocations: 85.75 kB / 423.8 MB, free: 13.27 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004575/0.4713, allocations: 291.3 kB / 424.1 MB, free: 12.99 MB / 350.1 MB Notification: Performance of SimCode: time 1.252e-06/0.4713, allocations: 0 / 424.1 MB, free: 12.99 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05677/0.5281, allocations: 17.85 MB / 441.9 MB, free: 11.07 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.73/12.26, allocations: 0 / 441.9 MB, free: 11.07 MB / 366.1 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/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)